chore: add pre-commit hook to auto-update lockfile on pyproject.toml changes

This commit is contained in:
2026-06-18 20:33:58 +00:00
parent 0ac02c3108
commit e281ac01e1
2 changed files with 10 additions and 0 deletions
+3
View File
@@ -17,8 +17,11 @@ git clone https://github.com/sudolulo/winnow.git
cd winnow
git checkout dev
uv sync
git config core.hooksPath .githooks
```
The last line activates the project's git hooks. The pre-commit hook automatically runs `uv lock` and stages the result whenever `pyproject.toml` is part of a commit, keeping the lockfile in sync without any extra steps.
## Running Tests and Lint
```bash