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 |
|
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 sureAs 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 checkdoes not run anythingI think there was a mistake in the detection if the manual stage should be used.