Skip to content

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

Open
@ashrobertsdragon

Description

@ashrobertsdragon

[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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions