Add automatic patch-version bumping via a tracked git pre-commit hook

pyproject.toml's version has never moved past the 1.0.0 scaffold value
across 368 commits; there was no bump mechanism at all, Claude-driven or
otherwise. Add .githooks/pre-commit (stdlib Python, no dependencies) that
increments the patch version on every commit and stages it automatically,
deferring to a deliberate version edit already staged in the same commit
and skipping merge commits. Wire it in via `make install` (git config
core.hooksPath .githooks) so it activates for every clone without
requiring any change to existing workflows.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TwLhnueWrsK15wrieXE5m7
This commit is contained in:
2026-09-07 15:22:23 +02:00
co-authored by Claude Sonnet 5
parent d9ff99c4a0
commit 78023d36ab
4 changed files with 59 additions and 1 deletions
+1
View File
@@ -36,6 +36,7 @@ install: $(PYTHON)
$(PYTHON) -m pip install -U pip
$(PYTHON) -m pip install -e ".[dev]"
$(PYTHON) -m playwright install chromium
git config core.hooksPath .githooks
touch $(VENV_STAMP)
dev: $(VENV_STAMP)