diff --git a/pre_commit/commands/run.py b/pre_commit/commands/run.py index 004449ed..7e756b60 100644 --- a/pre_commit/commands/run.py +++ b/pre_commit/commands/run.py @@ -387,7 +387,7 @@ def run( if args.rewrite_command: environ['PRE_COMMIT_REWRITE_COMMAND'] = args.rewrite_command - + if args.all_files: environ['PRE_COMMIT_ALL_FILES'] = '1' if args.all_files else ''