mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
always_run hooks always apply to the repository
This commit is contained in:
parent
6a177c41ca
commit
ae5b74ad38
2 changed files with 8 additions and 0 deletions
|
|
@ -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),
|
||||
)),
|
||||
),
|
||||
),
|
||||
))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue