If it is supposed to check that the lockfile is up to date with regard to pyproject.toml, it should be run with the --locked to report any issue .
If it is supposed to actually update the lockfile on commit, it should also automatically add the modified uv.lock to the git index so it gets included in the commit.
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.
I am not sure what the uv-lock is supposed to do:
--locked
to report any issue .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.