mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-23 09:20:31 -06:00
Exempt language: fail hooks from check-hooks-apply
This commit is contained in:
@@ -15,7 +15,7 @@ def check_all_hooks_match_files(config_file):
|
||||
|
||||
for repo in repositories(load_config(config_file), Store()):
|
||||
for hook_id, hook in repo.hooks:
|
||||
if hook['always_run']:
|
||||
if hook['always_run'] or hook['language'] == 'fail':
|
||||
continue
|
||||
include, exclude = hook['files'], hook['exclude']
|
||||
filtered = _filter_by_include_exclude(files, include, exclude)
|
||||
|
||||
Reference in New Issue
Block a user