Repository navigation
Closed
Labels
introducedReview finding classed introduced per local-strict-review Disposing of FindingsskillsAgent skill
Description
Found by a local strict review pass while carrying python-codestyle from 2.0.737 into a downstream Python repository (ptr727/aiopurpleair#190). The carry is byte-identical, so the fix belongs here. The three points below concern the wording that #2005 and #2007 introduced or re-flowed. Line numbers refer to .agents/skills/python-codestyle/ at 2.0.737.
- A mypy-only repository never type-checks its tests.
references/code-style.md(the strict-baseline bullet) says the CI checker runs strict on first-party code "and tests run in the checker's looser/standard mode". The only mypy command the skill gives isuv run mypy src, and mypy has no per-path strict setting like pyright'sstrict = ["src"]. A repository that follows the new "mypy may be a build repo's only CI checker" sentence, and the documented command, leavestests/unchecked, which contradicts that bullet. The fix is to say how a mypy-only repository checkstests/(for example a second, non-strict invocation, or a[[tool.mypy.overrides]]for the test package), or to say plainly that it does not. - Pyright diagnostics are both advisory and required to be quiet. The new sentence in
SKILL.mdsays that in a mypy-only repository "Pylance's pyright diagnostics are then advisory". The unchanged "Linter cleanliness" section still says the Problems pane should be quiet, and it names only ruff and pyright via Pylance. It doesn't mention the mypy extension that the same paragraph requires. An agent in a mypy-only repository gets two conflicting instructions, and the editor checker that matches CI isn't named where cleanliness is defined. - "never disagree" overstates the editor/CI match. The re-flowed sentence reads "where CI runs pyright, the editor and the CLI/CI (
uv run pyright) run the same engine and never disagree". Pylance bundles its own pyright build, and its version isn't tied to the pyright pinned in the lockfile. So the editor and CI can report different diagnostics on the same file whenever the two versions differ. This claim predates Allow Mypy Strict as a Build Directory's Only Type Checker #2005, which only added the qualifier.
A constructed case for point 1: a pyproject.toml with [tool.mypy] strict = true, files = ["src"] and no pyright in CI, with tests/test_x.py containing x: int = "a". uv run mypy src passes and CI stays green.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
introducedReview finding classed introduced per local-strict-review Disposing of FindingsskillsAgent skill
Activity
Describe the Pip Form Consistently Across python-codestyle (#2150)
ptr727 commentedon Oct 23, 2026
Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.