mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
add in an option to disable a hook when run with --all-files
This commit is contained in:
parent
cb0bcfd67f
commit
3a8b270dc0
3 changed files with 7 additions and 3 deletions
|
|
@ -81,6 +81,7 @@ MANIFEST_HOOK_DICT = cfgv.Map(
|
|||
cfgv.Optional('require_serial', cfgv.check_bool, False),
|
||||
cfgv.Optional('stages', cfgv.check_array(cfgv.check_one_of(C.STAGES)), []),
|
||||
cfgv.Optional('verbose', cfgv.check_bool, False),
|
||||
cfgv.Optional('run_all', cfgv.check_bool, True),
|
||||
)
|
||||
MANIFEST_SCHEMA = cfgv.Array(MANIFEST_HOOK_DICT)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue