hishtory/.pre-commit-config.yaml

20 lines
693 B
YAML
Raw Permalink Normal View History

repos:
- repo: https://github.com/Bahjat/pre-commit-golang
2024-08-25 23:39:57 +02:00
rev: bdba95f94147c2f5da7eda81e15cdd92c41758ba
hooks:
- id: go-vet
- id: go-static-check # install https://staticcheck.io/docs/
- id: golangci-lint # requires github.com/golangci/golangci-lint
- repo: local
hooks:
- id: go-errcheck
name: go-errcheck
entry: errcheck -exclude .errcheck_excludes.txt ./...
language: system
pass_filenames: false
2024-08-11 21:26:09 +02:00
- id: make-fmt # requires 'go install mvdan.cc/gofumpt@latest' and 'go install github.com/daixiang0/gci@latest'
name: make-fmt
entry: make fmt
language: system
pass_filenames: false