Repository navigation
Description
What's wrong
AGENTS.md lists pyright as a standard quality tool (pyright src/profiles in the "Outils de Qualité" table and in the pre-commit checklist) and pyproject ships it as a dev dependency (pyright>=1.1.0, pyproject.toml:112), but there is no pyrightconfig.json and no [tool.pyright] section. Running the documented command on a clean checkout floods 115 errors, so it cannot act as a gate and real type regressions are invisible in the noise.
Evidence (clean HEAD, macOS, uv run pyright src/profiles → 115 errors, 0 warnings)
Breakdown by cluster:
- ~34 errors in the deprecated
gui/(ui.py25,styles.py3,main_window.py3) — these disappear with Remove the deprecated Tkinter gui/ (phase 2) — tracking checklist #50 - ~58 in live core modules:
core/environment/execution.py30,core/config/inheritance.py14,core/config/reader.py8,core/processing/file_classifier.py6 — local-variable type widening,dict[str, object]kwargs unpacking and model-annotation drift - Cross-platform false positives:
os.startfile(src/profiles/utils/file_utils.py:435),ctypes.wintypes/ctypes.windll(src/profiles/utils/shortcut.py:59-60) — analyzable on any single platform without config hatchlingimport unresolved insrc/profiles/web/build_hook.py:9(already tracked in deptry: declare hatchling and direct transitive imports (PIL, objc, WebKit) and actually run deptry #43)
Why it matters
- AGENTS.md instructs contributors and coding agents to run pyright before commit; every run drowns in 115 errors, so nobody acts on it and genuine regressions slip through.
- The CI proposal in CI: no workflow runs tests or lint — add a quality gate (pytest, ruff, pylint, coverage, web build) #48 doesn't include pyright — it can't, in this state. Configuring pyright is the prerequisite for ever adding it to the gate.
Suggested fix
- Add a minimal
pyrightconfig.json(or[tool.pyright]) with the venv/execution-env settings. - Triage: exclude
gui/(or accept its errors until Remove the deprecated Tkinter gui/ (phase 2) — tracking checklist #50 lands); fix the core-module annotation debt (execution.py,inheritance.py,reader.py); narrow platform-specific attributes behindsys.platformguards; resolvehatchlingper deptry: declare hatchling and direct transitive imports (PIL, objc, WebKit) and actually run deptry #43. - Reach a clean (or explicitly baseline-suppressed)
pyright src/profiles, then wire it into the CI job proposed in CI: no workflow runs tests or lint — add a quality gate (pytest, ruff, pylint, coverage, web build) #48.
Minor, same theme: two pylint pragmas carry trailing prose that pylint parses as option values, emitting 7 spurious unknown-option-value (W0012) warnings — src/profiles/core/config/schema.py:112 (# pylint: disable-next=no-member (pylint infers FieldInfo, not the dict)) and src/profiles/core/environment/interactions.py:15 (# pylint: disable=unused-argument (reserved)). Moving the prose to its own comment line silences them.
Found during automated audit 2026-11-01
Activity