-
-
Notifications
You must be signed in to change notification settings - Fork 767
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
pre-commit run foo
does not work for pre-push hook foo
#1078
Comments
Try |
Ah, okay that's super helpful. Thanks! Why does |
|
I understand, I'm asking why the decision was made to only search a single stage when an |
stages were added later (it would have been backward incompatible to change the meaning there) and some of the stages don't make sense to be run alone (they require extra information ( Note that |
Ah, that makes a lot of sense (thanks again for the quick replies). It would be interesting to automatically search other hook-stages given an |
I'd rather not, that would be an incompatible change with current usages -- I'd rather "for stage {stage}" to the not found message |
See #1079 |
sounds great! thanks for the patch 🎉 |
Hi!
It appears that one cannot run run
pre-push
hooks ids withpre-commit run
.e.g.
If I remove
stages: [push]
I can run pytest with the same command as above.The text was updated successfully, but these errors were encountered: