Repository navigation
Silence mypy on the supplied bundle's files so the hook checks new code - #8
Merged
Merged
Conversation
The mypy hook checks the whole tree, and nine pre-existing annotation gaps in five bundle files made it fail on every commit. Those files are byte-exact records tied to SHA256SUMS and the evidence logs, so they get a per-module ignore_errors override instead of in-place fixes.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The mypy pre-commit hook runs on the whole tree (
pass_filenames: false). Nine pre-existing annotation errors in five files from the supplied bundle (scripts/benchmark_sse.py,src/v2_reference.py,tests/test_decisions.py,tests/test_races.py,tests/test_v2.py) made it fail on every commit, so agents were committing withSKIP=mypy, which also skips checking their new code.Those files are byte-exact records tied to
SHA256SUMSand the evidence logs, and AGENTS.md asks that cleanups of existing code get their own commit and a rerun ofscripts/verify_artifact.py. Instead of editing them, this adds a per-moduleignore_errorsoverride inpyproject.toml. New modules keep the full check.Validation:
pre-commit run mypy --all-filesnow passes on main.pyproject.tomlis not listed inSHA256SUMS.