# Pre-commit / pre-push gates.
# Install: `brew install lefthook && lefthook install` (or see https://github.com/evilmartians/lefthook).
#
# All logic lives in scripts/ and Makefile so the same gates run from harness
# hooks, CI, and bare git. Adding logic here directly is an anti-pattern.
pre-commit:
parallel: true
commands:
fmt-check:
glob: "**/*.rs"
run: scripts/fmt.sh --check
lockfile:
run: scripts/check-lockfile.sh
pre-push:
commands:
verify:
run: make verify