always_run hooks always apply to the repository

This commit is contained in:
Anthony Sottile 2017-11-03 09:28:57 -07:00
parent 6a177c41ca
commit ae5b74ad38
2 changed files with 8 additions and 0 deletions

View file

@ -14,6 +14,8 @@ def check_all_hooks_match_files(config_file):
for repo in runner.repositories:
for hook_id, hook in repo.hooks:
if hook['always_run']:
continue
include, exclude = hook['files'], hook['exclude']
filtered = _filter_by_include_exclude(files, include, exclude)
types, exclude_types = hook['types'], hook['exclude_types']