From d731652a229e75714201fe42fdf3cbaa04387607 Mon Sep 17 00:00:00 2001 From: Dain Liffman Date: Wed, 31 May 2017 10:09:42 +0800 Subject: [PATCH] Fix for #533 --- pre_commit/commands/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre_commit/commands/run.py b/pre_commit/commands/run.py index 3039b662..9ce71d8d 100644 --- a/pre_commit/commands/run.py +++ b/pre_commit/commands/run.py @@ -57,7 +57,7 @@ NO_FILES = '(no files to check)' def _run_single_hook(hook, repo, args, skips, cols): - filenames = get_filenames(args, hook['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),