fa8ccac0dd
- go.mod: go 1.26.5 -> 1.25.7 to match the golang:1.25 CI image (node-lookup convention) - .pre-commit-config: dnephin go-vet runs at repo root (no .go files here since both tools live under cmd/); replace with a local 'go vet ./...' hook (CI pre-commit image has go)
29 lines
780 B
YAML
29 lines
780 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.6.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-merge-conflict
|
|
- id: mixed-line-ending
|
|
args: [--fix=lf]
|
|
|
|
- repo: https://github.com/dnephin/pre-commit-golang
|
|
rev: v0.5.1
|
|
hooks:
|
|
- id: go-fmt
|
|
- id: go-unit-tests
|
|
|
|
# go-vet at the module level (dnephin's go-vet runs at repo root, which has no
|
|
# .go files here since both tools live under cmd/). The CI pre-commit image
|
|
# (almalinux9-gobuilder) has go installed.
|
|
- repo: local
|
|
hooks:
|
|
- id: go-vet-mod
|
|
name: go vet (module)
|
|
entry: go vet ./...
|
|
language: system
|
|
types: [go]
|
|
pass_filenames: false
|