From 5d3fbb026e07d5f53651de88dd7ca2525c87796d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 28 Oct 2021 09:55:36 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pre_commit/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pre_commit/main.py b/pre_commit/main.py index 34f16db8..c3aa82ad 100644 --- a/pre_commit/main.py +++ b/pre_commit/main.py @@ -187,8 +187,10 @@ def _adjust_args_and_chdir(args: argparse.Namespace) -> None: args.config = os.path.relpath(args.config) if args.command in {'run', 'try-repo'}: - args.files = [_canon_relpath(filename, toplevel) - for filename in args.files] + args.files = [ + _canon_relpath(filename, toplevel) + for filename in args.files + ] if args.command == 'try-repo' and os.path.exists(args.repo): args.repo = os.path.relpath(args.repo)