From c90dc76d9b837b0334c0dd331f231b9db582a226 Mon Sep 17 00:00:00 2001 From: J Long Date: Fri, 8 May 2026 13:06:39 +0100 Subject: [PATCH] chore: wire git hooks setup into Makefile and CONTRIBUTING Add `git config core.hooksPath .githooks` to the `make setup` target and to the CONTRIBUTING.md local setup steps so new clones automatically activate the pre-push hook that blocks direct pushes to main. --- CONTRIBUTING.md | 3 +++ Makefile | 1 + 2 files changed, 4 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1b03659..d62086c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -36,6 +36,9 @@ pip install -e "packages/parser-core[dev,test]" # Install parser-free in editable mode (depends on parser-core above) pip install -e "packages/parser-free[test]" + +# Activate local git hooks (blocks direct pushes to main) +git config core.hooksPath .githooks ``` ### Verify Setup diff --git a/Makefile b/Makefile index 8b4e9ec..69ed03e 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,7 @@ setup: ## Full development environment setup $(MAKE) pre-commit-install chmod +x setup-git-hooks.sh ./setup-git-hooks.sh + git config core.hooksPath .githooks @echo "✅ Setup complete!" # Testing