mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Skip hooks if no files to check. Closes #69.
This commit is contained in:
parent
6c940c5145
commit
de24712a6f
2 changed files with 22 additions and 1 deletions
|
|
@ -235,6 +235,7 @@ def test_run_all_hooks_failing(repo_with_failing_hook):
|
|||
0,
|
||||
True,
|
||||
),
|
||||
({}, ('Bash hook', '(no files to check)', 'Skipped'), 0, False),
|
||||
)
|
||||
)
|
||||
def test_run(repo_with_passing_hook, options, outputs, expected_ret, stage):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue