astral-sh / uv-pre-commit

Apache License 2.0
85 stars 7 forks source link

The uv-lock hook updates uv.lock but does not commit it #26

Open Adirelle opened 2 days ago

Adirelle commented 2 days ago

I am not sure what the uv-lock is supposed to do:

Right now it seems to be something in between: the lockfile is updated but not commited, and so it appears as a modified file after the commit has been done.

thisiswhereitype commented 1 day ago

I think this i pre-commit behaviour, failed commands and changes to tracked files indicate a failed hook.

This hook stops you committing an environment differing to the one you have uv sync.