-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
pre-commit on windows fails on Validate filenames #8736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I encountered the same issue. The problem lies in the shebang statement of the file './scripts/validate_filenames.py':
On Windows, the 'python3' command is not recognized, but you could theoretically resolve this by changing the shebang in the script to:
This modification will make it work on your machine. But to ensure compatibility with other operating systems, you can instead create a symbolic link to the 'python.exe' file on your machine. Follow these steps: Open the command prompt as admin (cmd).
For more information, you can refer to this: https://stackoverflow.com/a/55229666/21989223 |
@CaedenPH Is this still an open issue? |
I was facing the same issue and resolved by it work in my case |
Repository commit
1faf10b
Python version (python --version)
Python 3.11.3
Dependencies version (pip freeze)
Expected behavior
Run validate filenames when using pre-commit on windows
Actual behavior
The text was updated successfully, but these errors were encountered: