mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
58e1f625ab
commit
5d3fbb026e
1 changed files with 4 additions and 2 deletions
|
|
@ -187,8 +187,10 @@ def _adjust_args_and_chdir(args: argparse.Namespace) -> None:
|
||||||
|
|
||||||
args.config = os.path.relpath(args.config)
|
args.config = os.path.relpath(args.config)
|
||||||
if args.command in {'run', 'try-repo'}:
|
if args.command in {'run', 'try-repo'}:
|
||||||
args.files = [_canon_relpath(filename, toplevel)
|
args.files = [
|
||||||
for filename in args.files]
|
_canon_relpath(filename, toplevel)
|
||||||
|
for filename in args.files
|
||||||
|
]
|
||||||
if args.command == 'try-repo' and os.path.exists(args.repo):
|
if args.command == 'try-repo' and os.path.exists(args.repo):
|
||||||
args.repo = os.path.relpath(args.repo)
|
args.repo = os.path.relpath(args.repo)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue