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

mypy vs pre-commit mypy #106

Closed
mikegerber opened this issue Mar 27, 2024 · 2 comments
Closed

mypy vs pre-commit mypy #106

mikegerber opened this issue Mar 27, 2024 · 2 comments
Assignees

Comments

@mikegerber
Copy link
Member

I get error with pre-commit's mypy, but not with the local mypy. Why?

@mikegerber mikegerber self-assigned this Mar 27, 2024
@mikegerber
Copy link
Member Author

mypy src

vs

pre-commit run -a mypy

@mikegerber
Copy link
Member Author

The hook runs in an isolated environment, adding dependencies in .pre-commit-config.yaml fixes this.

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

No branches or pull requests

1 participant