When you manually modify breeze's pyproject.toml, the uv.lock might not correspond to the changes you've just added. Breeze manages installation automatically when you run it, so when you use uv tool it should use the .lock, so whenever we modify pyproject.toml we should also make sure uv sync is run to reflect that.
This can be done with a pre-commit. The uv sync should only modify lock if pyproject.toml changed (unles --frozen option is used for uv sync - so we should be able to safely run uv lock in pre-commit for breeze, just to make sure no changes in pyproject.toml should be reflected in the lock file.
When you manually modify breeze's
pyproject.toml
, theuv.lock
might not correspond to the changes you've just added. Breeze manages installation automatically when you run it, so when you useuv tool
it should use the .lock, so whenever we modifypyproject.toml
we should also make sureuv sync
is run to reflect that.This can be done with a
pre-commit
. Theuv sync
should only modify lock ifpyproject.toml
changed (unles--frozen
option is used foruv sync
- so we should be able to safely runuv lock
in pre-commit for breeze, just to make sure no changes inpyproject.toml
should be reflected in the lock file.