-
-
Notifications
You must be signed in to change notification settings - Fork 7
Error running pre-commit after pre-commit-uv install on Windows #4
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
I'm running on Windows 11 and have both pre-commit and uv installed with pipx. I followed the pipx instructions to inject install pre-commit-uv then tried deleting my pre-commit cache and running pre-commit on a repo to receive this error:
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Using pre-commit with uv 0.2.34 via pre-commit-uv 4.0.2
An unexpected error has occurred: CalledProcessError: command: ('C:\\Users\\Owen\\.local\\pipx\\venvs\\pre-commit\\Scripts\\uv.exe', 'venv', 'C:\\Users\\Owen\\.cache\\pre-commit\\repoj03weecx\\py_env-default')
return code: 1
stdout: (none)
stderr:
× No interpreter found in system path or `py` launcher
Check the log at C:\Users\Owen\.cache\pre-commit\pre-commit.logReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed