Skip to content

mypy: Start checking tests#579

Draft
stephenfin wants to merge 1 commit intotesting-cabal:masterfrom
stephenfin:enable-typing-in-tests
Draft

mypy: Start checking tests#579
stephenfin wants to merge 1 commit intotesting-cabal:masterfrom
stephenfin:enable-typing-in-tests

Conversation

@stephenfin
Copy link
Contributor

@stephenfin stephenfin commented Mar 5, 2026

We were only passing the testtools directory to mypy, which meant the tests directory was never getting checked. Fixing this highlights a large number of issues that must be resolved.

This is WIP as there are quite a lot of issues to address 😅

PS: This is a non-trivial amount of work that will likely require some fixes to the type annotation in testtools itself. I'm happy for someone else to take this over as it could be a while before I get to it.

We were only passing testtools to mypy, which meant tests were never getting
run through mypy. Fixing this highlights a large number of issues that must
be resolved.

Signed-off-by: Stephen Finucane <stephen@that.guru>
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