We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1efb0bd commit d04e8c4Copy full SHA for d04e8c4
pre_commit/main.py
@@ -168,8 +168,9 @@ def _adjust_args_and_chdir(args: argparse.Namespace) -> None:
168
try:
169
args.config = os.path.relpath(args.config)
170
# https://github.com/pre-commit/pre-commit/issues/2530
171
- # os.relpath will fail with a ValueError if the two directories are on two different drives on Windows
172
- # the path is made relative for display purposes only so we can ignore the error
+ # os.relpath will fail with a ValueError if the two directories are on
+ # two different drives on Windows and since the path is made relative
173
+ # for display purposes only we can ignore the error
174
except ValueError:
175
pass
176
if args.command in {'run', 'try-repo'}:
0 commit comments