Files
lore-mirror/.pre-commit-config.yaml
2026-02-22 06:48:36 -08:00

29 lines
755 B
YAML

repos:
- repo: local
hooks:
- id: goimports
name: Format Go Code
entry: goimports
args: [-w]
language: system
types: [go]
- id: golangci-lint
name: Lint Go Code
entry: golangci-lint
args: [run]
language: system
pass_filenames: false # run on the entire project, not just staged files
- id: go-build
name: Build Go Code
entry: go build ./...
language: system
pass_filenames: false # run on the entire project, not just staged files
- id: go-test
name: Test Go Code
entry: go test ./...
language: system
pass_filenames: false # run on the entire project, not just staged files