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 # dnephin's go-vet hook runs `go list` at the module root, which has no Go # files here (the CLI lives under cmd/), so vet the whole module instead. - repo: local hooks: - id: go-vet name: go vet entry: go vet ./... language: system types: [go] pass_filenames: false