Skip to content

Silence mypy on the supplied bundle's files so the hook checks new code - #8

Merged
SamMausberg merged 1 commit into
mainfrom
infra/mypy-bundle
Sep 30, 2026
Merged

SamMausberg merged 1 commit into
mainfrom
infra/mypy-bundle

Conversation

@SamMausberg

Copy link
Copy Markdown
Owner

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 with SKIP=mypy, which also skips checking their new code.

Those files are byte-exact records tied to SHA256SUMS and the evidence logs, and AGENTS.md asks that cleanups of existing code get their own commit and a rerun of scripts/verify_artifact.py. Instead of editing them, this adds a per-module ignore_errors override in pyproject.toml. New modules keep the full check.

Validation: pre-commit run mypy --all-files now passes on main. pyproject.toml is not listed in SHA256SUMS.

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.
@SamMausberg
SamMausberg merged commit c79fa61 into main Sep 30, 2026
@SamMausberg
SamMausberg deleted the infra/mypy-bundle branch September 30, 2026 19:03
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-30T19:04:27.866273Z e1dc77e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant