DOC: AGENTS.md says there is no MyPy gate, and its documented pre-commit command fails on a clean dev
What's wrong with the existing documentation
Root AGENTS.md predates the changed-file MyPy check (3d84d7b) in two places, and both now point contributors and agents the wrong way.
1. The commands table no longer matches CI (line 37).
| Task | Check (what CI runs) |
|---|---|
| Python lint + format | pre-commit run --config .pre-commit-config.yaml --all-files |
.pre-commit-config.yaml now carries mypy-backend and mypy-sync-microservice hooks. CI runs this command with SKIP=mypy-backend,mypy-sync-microservice, then type-checks only the PR's changed files in a separate step. Run as written on a clean dev (c8f0c3f):
mypy (backend)........................................Failed
Found 345 errors in 43 files (checked 132 source files)
mypy (sync microservice)..............................Failed
Found 2 errors in 1 file (checked 22 source files)
With the SKIP that CI uses, the same command passes. backend/AGENTS.md, agent-kit/references/ci-gates.md, and the pre-pr-check skill already give the SKIP form and the changed-file step; only the root file is behind.
2. The Python rule says the gate does not exist (lines 88-89).
It reads "There is no mypy gate in CI, so annotations are for the reader and for the next agent". There is one now, and it is stricter than most contributors would guess: every Python file a PR touches is checked in full, so errors that predate the PR still fail it. Someone following this line will be surprised by a red check on a file they barely changed.
Suggested change:
- Line 37: use the CI form,
SKIP=mypy-backend,mypy-sync-microservice pre-commit run --config .pre-commit-config.yaml --all-files, and add a row for the changed-file MyPy check that points atagent-kit/references/ci-gates.md, which already has the exact command. - Lines 88-89: say that MyPy checks every changed Python file in full, so pre-existing errors in a touched file need fixing (or the file left alone).
Add ScreenShots
Not applicable, this is a text change.
Record
- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on this issue
👋 Thanks for opening this issue! The maintainers will review it shortly. Till then, do not open any PR. This is a strict rule we like to follow around here :)
⚠️ Potential Duplicate Issue (Semantic Match)
This issue appears semantically similar to the following issues in AOSSIE-Org/PictoPy:
- Add changed-file MyPy checks to CI (#1550, closed) https://github.com/AOSSIE-Org/PictoPy/issues/1550 Similarity: 65.7%
Please review before proceeding.
Not a duplicate. The match is the issue that added the changed-file check; it changed CI, while this one is about the two lines of root AGENTS.md that still describe CI without it.
Link your account with Gitcord
Thanks for opening this issue, @VanshajPoonia!
To receive Discord notifications and contributor tracking for this organization:
- Join Discord: https://discord.gg/hjUhu33uAn
- In Discord, run
/link VanshajPoonia - Paste the verification code into your GitHub bio (or a public gist)
- Click Verify in Discord (or run
/verify-link VanshajPoonia)
Once linked, Gitcord can notify you about assignments, mentions, and more.
— Posted by Gitcord
Hi maintainers, I'd like to work on this issue. Could you please assign it to me? I'll update the documentation to align with the current CI workflow.
Thanks!
@rohan-pandeyy, I filed this intending to fix it, so could you assign it to me if it looks right to you? It is a small change to AGENTS.md. Thanks!