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
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
if git diff --cached --name-only | grep -q "^pyproject\.toml$"; then
uv lock
git add uv.lock
fi