Skip to content

chore: pyright is prescribed by AGENTS.md but unconfigured — 115 errors on a clean checkout #69

Closed

Description

@falbany

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:

Why it matters

Suggested fix

  1. Add a minimal pyrightconfig.json (or [tool.pyright]) with the venv/execution-env settings.
  2. 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 behind sys.platform guards; resolve hatchling per deptry: declare hatchling and direct transitive imports (PIL, objc, WebKit) and actually run deptry #43.
  3. 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

  1. added
    code-quality
    tech-debt
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-qualitytech-debt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions