From d97ea30c4bb309a2877fed95323ac8c793c0679f Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Thu, 7 May 2015 17:06:33 -0700 Subject: [PATCH] Minor style change for consistency sake --- pre_commit/commands/run.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pre_commit/commands/run.py b/pre_commit/commands/run.py index 8bab9784..4e3fb189 100644 --- a/pre_commit/commands/run.py +++ b/pre_commit/commands/run.py @@ -161,8 +161,10 @@ def run(runner, args, write=sys_stdout_write_wrapper, environ=os.environ): with ctx: hook_executors = list(get_hook_executors(runner)) if args.hook: - hook_executors = [he for he in hook_executors - if he.hook['id'] == args.hook] + hook_executors = [ + he for he in hook_executors + if he.hook['id'] == args.hook + ] if not hook_executors: write('No hook with id `{0}`\n'.format(args.hook)) return 1