Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move type checking outside pre-commit #12866

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pradyunsg
Copy link
Member

@pradyunsg pradyunsg commented Jul 21, 2024

See python/mypy#13916 and https://jaredkhan.com/blog/mypy-pre-commit

I'm basically taking the approach of "Running Mypy correctly outside of Pre-commit" (from the second link) and stopping there since I don't think we gain a lot by shoving mypy into pre-commit.

Keeping this as a draft to showcase all the new errors that mypy is now capable of flagging.

Invoke mypy with specific directories rather than a list of files found
by pre-commit in the repository. This makes it catch more errors and
issues.
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