Uh oh!
There was an error while loading. Please reload this page.
REF: Make mypy manual stage with pre-commit - #6024
Conversation
max-sixty
commented
Nov 24, 2021
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? |
dcherian
commented
Nov 24, 2021
I like this! |
Uh oh!
There was an error while loading. Please reload this page.
snowman2
commented
Nov 24, 2021
I think it is equivalent to |
Illviljan
commented
Nov 24, 2021
Is mypy being run in the CI now? |
snowman2
commented
Nov 24, 2021
Yes, it runs on the CI |
max-sixty
commented
Nov 24, 2021
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. |
snowman2
commented
Nov 24, 2021
I am not seeing an option to do that: https://pre-commit.ci/ |
max-sixty
commented
Nov 25, 2021
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. |
max-sixty
commented
Feb 5, 2022
I'm sorry this dropped. Could we resolve conflicts and then merge? |
snowman2
commented
Feb 5, 2022
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
54066e5CompareCo-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com>
max-sixty
commented
Feb 9, 2022
Thanks a lot @snowman2 ! |
With this setup, the
mypyhook is only added to the run if you specify it:cc: @dcherian
https://pre-commit.com/#confining-hooks-to-run-at-certain-stages