We use uv to manage Python dependencies.
When updating Python dependencies anywhere in the project, you must update both the uv.lock and requirements.txt to keep them in sync.
- Update
pyproject.tomlwith your changes - Run
uv lock --project="pyproject.toml"from the directory containing thepyproject.tomlto generate/updateuv.lock - Run
uv export --project="pyproject.toml" --output-file="requirements.txt"from the same directory to generate/updaterequirements.txt
The pre-commit hooks automatically handle this by running uv lock and uv export for all pyproject.toml files in the repository.