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

@ -116,6 +116,12 @@ def test_valid_includes(
OrderedDict((
('id', 'check-useless-excludes'),
)),
# Should not be reported as an error due to always_run
OrderedDict((
('id', 'check-useless-excludes'),
('files', '^$'),
('always_run', True),
)),
),
),
))