astral-sh / astral-sh/uv-pre-commit
pre-commit cannot find uv-sync in the uv-pre-commit repository
- Dominant language
- Python
- Stars
- 348
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
[ERROR] `uv-sync` is not present in repository https://github.com/astral-sh/uv-pre-commit. Typo? Perhaps it is introduced in a newer version? Often `pre-commit autoupdate` fixes this.
OS: WIndows 11
uv version installed: 0.5.11
Minimum reproducible version:
.pre-commit-config.yaml:
yml```
default_install_hook_types:
- pre-commit
- post-checkout
- post-merge
- post-rewrite
repos:
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.5.11
hooks:
- id: uv-sync
args: ["--locked"]
```
commands run:
PowerShell```
PS C:\> mkdir test_uv
Directory: C:\
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 12/22/2024 12:27 PM test_uv
PS C:\> cd test_uv
PS C:\test_uv> uv --version
uv 0.5.11 (c4d0caaee 2024-12-19)
PS C:\test_uv> uv init
Initialized project `test-uv`
PS C:\test_uv> copy C:\.pre-commit-config.yaml .
PS C:\test_uv> ls
Directory: C:\test_uv
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 12/22/2024 12:27 PM 109 .gitignore
-a--- 12/22/2024 12:24 PM 243 .pre-commit-config.yaml
-a--- 12/22/2024 12:27 PM 5 .python-version
-a--- 12/22/2024 12:27 PM 85 hello.py
-a--- 12/22/2024 12:27 PM 153 pyproject.toml
-a--- 12/22/2024 12:27 PM 0 README.md
PS C:\test_uv> pre-commit install --install-hooks -t post-checkout -t post-merge -t post-rewrite
pre-commit installed at .git\hooks\post-checkout
pre-commit installed at .git\hooks\post-merge
pre-commit installed at .git\hooks\post-rewrite
[ERROR] `uv-sync` is not present in repository https://github.com/astral-sh/uv-pre-commit. Typo? Perhaps it is introduced in a newer version? Often `pre-commit autoupdate` fixes this.
PS C:\test_uv> pre-commit autoupdate
[https://github.com/astral-sh/uv-pre-commit] Cannot update because the update target is missing these hooks: uv-sync
```
I have tried the 0.5.9 repository (because the readme still uses that version number instead of 0.5.11) as well as 0.5.11
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the .pre-commit-config.yaml example and inspect the uv-pre-commit repository at revisions 0.5.9 and 0.5.11, focusing on the available hook IDs. Reproduce the failure with pre-commit install --install-hooks and pre-commit autoupdate on Windows; done means the documented uv-sync configuration is recognized without the missing-hook error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100