implement default_install_hook_types

this implements a configurable fallback for the default value of `pre-commit install`
This commit is contained in:
Anthony Sottile 2022-04-02 14:00:23 -04:00
parent 934afb85a4
commit fd0177ae3a
7 changed files with 86 additions and 55 deletions

View file

@ -24,4 +24,10 @@ STAGES = (
'post-rewrite',
)
HOOK_TYPES = (
'pre-commit', 'pre-merge-commit', 'pre-push', 'prepare-commit-msg',
'commit-msg', 'post-commit', 'post-checkout', 'post-merge',
'post-rewrite',
)
DEFAULT = 'default'