Hooks that have stages:
set in .pre-commit-hooks.yaml do not respect caller's default_stages
setting
#515
Labels
stages:
set in .pre-commit-hooks.yaml do not respect caller's default_stages
setting
#515
I just added my first pre-push hook as an experiment. For now, I want to run that hook when pushing, but not all the others. So I set
default_stages: [commit]
in my.pre-commit-config.yaml
.Here's what I see on push:
I expected only that last one, but instead I got the first three as well.
In this repository it looks like these are the only hooks that have their own
stages
setting. I'd venture a guess that that setting is somehow over-riding thedefault_stages
setting in a caller's config.The text was updated successfully, but these errors were encountered: