I try to install pre-commit with the manual from pre-commit.com.
At step 3 I get the following error message on a Windows 10 machine:
[WinError 123] The syntax for filename, directory name, or volume label is incorrect: ''
.pre-commit-config.yaml
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://server/Sandbox/Repo/_git/Repo
rev: v2.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
error information
An unexpected error has occurred: OSError: [WinError 123] Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch: ''
Traceback (most recent call last):
File "c:\user\programme\python\python37-32\lib\site-packages\pre_commit\error_handler.py", line 72, in error_handler
yield
File "c:\user\programme\python\python37-32\lib\site-packages\pre_commit\main.py", line 294, in main
_adjust_args_and_chdir(args)
File "c:\user\programme\python\python37-32\lib\site-packages\pre_commit\main.py", line 125, in _adjust_args_and_chdir
os.chdir(git.get_root())
OSError: [WinError 123] Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch: ''
--version
Python 3.7.3
pre-commit 1.20.0
I try to install pre-commit with the manual from pre-commit.com.
At step 3 I get the following error message on a Windows 10 machine:
[WinError 123] The syntax for filename, directory name, or volume label is incorrect: ''.pre-commit-config.yaml
error information
--version
Python 3.7.3
pre-commit 1.20.0