mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Followup to #533, match no files when omitted
This commit is contained in:
parent
fc907b512a
commit
e150921c75
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ NO_FILES = '(no files to check)'
|
|||
|
||||
|
||||
def _run_single_hook(hook, repo, args, skips, cols):
|
||||
filenames = get_filenames(args, hook.get('files', ''), hook['exclude'])
|
||||
filenames = get_filenames(args, hook.get('files', '^$'), hook['exclude'])
|
||||
if hook['id'] in skips:
|
||||
output.write(get_hook_message(
|
||||
_hook_msg_start(hook, args.verbose),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue