repos: - repo: https://github.com/golangci/golangci-lint rev: v1.61.0 hooks: - id: golangci-lint entry: golangci-lint run args: [--timeout=5m] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files - id: check-merge-conflict - repo: https://github.com/dnephin/pre-commit-golang rev: v0.5.1 hooks: - id: go-fmt - id: go-imports - id: no-go-testing - repo: local hooks: - id: go-test name: go test entry: go test ./... language: system pass_filenames: false types: [go]