-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Windows: Pre-Commit: Codespell/Clang-Format don't find Python executable #10940
Comments
That is really strange because the other hooks also use python. |
You do have Python 3 installed, right? If so, I suggest you file an issue upstream: https://github.com/pre-commit/pre-commit/issues/new/choose |
The bug report was closed with the comment: "the bug is in your tools/codespell.py" |
Also clang-format fails (was not triggered by my original code change). I guess that all the checks with a python script under ./tools/ fail. |
My .git\hooks\pre-commit contains the correct path of the python interpreter:
and it's Python version 3.9.7:
|
For experiment I replaced the first shebang line of tools/clang_format.py Than clang format starts to work, but fails with executing a subprocess:
|
Fixed by #11004 |
Bug Description
I had partially success to get pre-commit to work on Windows.
Only codespell fails to find the Python executable. I tried already to add it to PATH, but it doesn't solve the issue:
Version
Main
OS
Windows 11 x64
The text was updated successfully, but these errors were encountered: