mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Actually use the exclude pattern. Closes #47.
This commit is contained in:
parent
ac67af21ec
commit
535be5b33a
3 changed files with 17 additions and 8 deletions
|
|
@ -35,7 +35,7 @@ def _run_single_hook(runner, repository, hook_id, all_files=False):
|
|||
retcode, stdout, stderr = repository.run_hook(
|
||||
runner.cmd_runner,
|
||||
hook_id,
|
||||
get_filenames(hook['files']),
|
||||
get_filenames(hook['files'], hook['exclude']),
|
||||
)
|
||||
|
||||
if retcode != repository.hooks[hook_id]['expected_return_value']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue