Skip to content

dev: add pre-commit hooks for gofmt/vet/build#216

Merged
marcus merged 1 commit intomainfrom
shrike/pre-commit-hooks
Mar 1, 2026
Merged

dev: add pre-commit hooks for gofmt/vet/build#216
marcus merged 1 commit intomainfrom
shrike/pre-commit-hooks

Conversation

@marcus
Copy link
Owner

@marcus marcus commented Mar 1, 2026

Adds scripts/pre-commit.sh that runs gofmt (staged files only), go vet, and go build on commit.

Install with:

make install-hooks

Mirrors the pattern landed in nightshift #44.

Adds scripts/pre-commit.sh that runs:
- gofmt on staged .go files
- go vet ./...
- go build ./...

Install with: make install-hooks

Also adds make install-hooks target and documents it in README.
@marcus marcus merged commit ff4c36a into main Mar 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant