Skip to content

Check types in CI - #33

Merged
awolverp merged 1 commit into
awolverp:masterfrom
andersk:python-type-checking
Oct 8, 2026
Merged

awolverp merged 1 commit into
awolverp:masterfrom
andersk:python-type-checking

Conversation

@andersk

@andersk andersk commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Add a typecheck job to the test workflow, so that type errors don't come back: it runs mypy in strict mode and pyright on the package, targeting the oldest supported Python version, and mypy's stubtest, which checks that the _rustlib stubs match the compiled module.

Add a typecheck dependency group with mypy and pyright, whose versions uv.lock pins (which matters for type checkers in particular, since new versions can find new errors), and a test-types Makefile target that runs the same checks.

Add a typecheck job to the test workflow, so that type errors don't
come back: it runs mypy in strict mode and pyright on the package,
targeting the oldest supported Python version, and mypy's stubtest,
which checks that the _rustlib stubs match the compiled module.

Add a typecheck dependency group with mypy and pyright, whose versions
uv.lock pins (which matters for type checkers in particular, since new
versions can find new errors), and a test-types Makefile target that
runs the same checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
@awolverp
awolverp merged commit 64dab43 into awolverp:master Oct 8, 2026
13 checks passed
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.

2 participants