Skip to content
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

pre-commit cannot find uv-sync in the uv-pre-commit repository #29

Open
ashrobertsdragon opened this issue Dec 22, 2024 · 0 comments
Open

Comments

@ashrobertsdragon
Copy link

ashrobertsdragon commented Dec 22, 2024

[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:



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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant