-
Notifications
You must be signed in to change notification settings - Fork 28
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
Executable ... not found when running pre-commit #25
Comments
I'm experiencing the same issue. My system info: OS: Microsoft Windows Server 2016 Standard |
The issue seems to be with how the yamlfmt script is deployed. It may be best to move the main logic to a module and export an entry point for pre-commit. That seems to be how the main pre-commit-hooks repo does it. |
I am facing the same issue. And I have same config as yours |
It might be useful for someone to know. - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 71af8556bfcf12745fdfdb3ed57b6698b444f58c
hooks:
- id: yamlfmt
args: [--mapping, '2', --sequence, '4', --offset, '2'] |
Classic backslashes in path on Windows not being escaped :) |
Hey, I encountered the same issue and wanted to ask, if there is a fix for the removal of the backslashes? |
Still no fix? |
Same error in Windows 10 |
I ended up using pre-commit in WSL |
Issue
When I run
pre-commit run --all-files
I get the following:It looks like somwhere somehow the
/
characters are being stripped because I was able to find this:I even tried renaming
.../python.exe
to.../python.EXE
but that didn't seem to matter.Config
My
.pre-commit-config.yaml
file:Environment
I am using Windows 10 Pro
I have activated a virtual environment, but both the virtual environment and the global one have
pre-commit
installed.My python version is 3.9.5
The text was updated successfully, but these errors were encountered: