-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
REF: Make mypy manual stage with pre-commit #6024
Conversation
Thanks @snowman2 . This is excellent! I didn't know we could pass I'm a 👍. Can we update the PR template to include that flag? |
I like this! |
I think it is equivalent to |
Is mypy being run in the CI now? |
Yes, it runs on the CI |
Ah — one thing to check — I'm not sure it's running in https://results.pre-commit.ci/run/github/13221727/1637775215.Vi4gz7adRWeUAsEu1oJeZA — can we make it? We were hoping to replace the existing CI job with this. |
I am not seeing an option to do that: https://pre-commit.ci/ |
OK, I'd vote to merge this, leave the existing CI job, and then remove it when pre-commit.ci allows running manual stages. One of the main benefits of pre-commit.ci is that it adds changes to the branch, which doesn't help for mypy anyway. |
I'm sorry this dropped. Could we resolve conflicts and then merge? |
No worries. I will try to address the conflicts when I get a free moment. Though, I wouldn't complain if someone else with a sooner free moment finished this one off before I do :-). |
7cc7190
to
54066e5
Compare
Co-authored-by: Maximilian Roos <[email protected]>
54066e5
to
646d151
Compare
Thanks a lot @snowman2 ! |
With this setup, the
mypy
hook is only added to the run if you specify it:cc: @dcherian
https://pre-commit.com/#confining-hooks-to-run-at-certain-stages