-
Notifications
You must be signed in to change notification settings - Fork 162
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
Fixed check for manual stage #450
Conversation
@ThunderKey, I think this is still incorrect. The original is only true when I think we need to understand what people want from this. I find the pre-commit docs mildly confusing, but my understanding is that to run hooks that only have the So the check should be: if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment.
Another compounding issue is that |
You are right. I've misunderstood the We have changed I see two options:
Do you have any preferences? |
So something like #415. What is pre-commit's default stage when you run If it's not |
#451 makes all of this really tricky. I think if we add |
The default of the Ah yes, my first option is exactly #415. For ls .git/hooks/pre-push # exists
pre-commit uninstall -t pre-push # hook gets removed
ls .git/hooks/pre-push # does not exist
pre-commit run --hook-stage pre-push # hook gets executed
ls .git/hooks/pre-push # still does not exist, just to make sure As I understand I'll close this PR in favour of #415. |
I've noticed in our setup:
default_stages = [ "manual" "pre-push" ];
ordefault_stages = ["manual" "push"];
as in the READMEnix flake check
does not run anythingI think there was a mistake in the detection if the manual stage should be used.