Files
yellowjacket/lefthook.yml
T
yonluandClaude Opus 4.8 20c2e74412 chore: allow direct pushes to main
Remove the protect-main pre-push guard so main can be pushed directly,
and update the CLAUDE.md git-workflow note to match.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 13:42:24 -04:00

40 lines
970 B
YAML

# lefthook.yml — local git hooks for yellowjacket
# Install with: lefthook install
# Docs: https://github.com/evilmartians/lefthook
pre-commit:
parallel: true
commands:
go-vet:
glob: "*.go"
run: go vet -tags webkit2_41 ./...
golangci-lint:
glob: "*.go"
run: go tool golangci-lint run --timeout 5m --build-tags webkit2_41 ./...
codegen-check:
glob: "*.{go,sql,templ}"
run: |
go generate ./...
if [ -n "$(git diff --name-only)" ]; then
echo "Generated code is out of date. Run 'make generate' and stage the changes."
git diff --stat
exit 1
fi
frontend-typecheck:
glob: "frontend/**/*.{ts,tsx}"
root: "frontend/"
run: ./node_modules/.bin/tsc --noEmit
pre-push:
parallel: true
commands:
go-test:
glob: "*.go"
run: go test -tags webkit2_41 -race -count=1 -timeout 120s ./...
go-mod-verify:
run: go mod verify