master
 1repos:
 2  - repo: https://github.com/pre-commit/pre-commit-hooks
 3    rev: v5.0.0
 4    hooks:
 5      - id: trailing-whitespace
 6      - id: end-of-file-fixer
 7      - id: check-yaml
 8      - id: check-added-large-files
 9      - id: check-case-conflict
10      - id: check-executables-have-shebangs
11      - id: check-json
12      - id: check-shebang-scripts-are-executable
13      - id: check-toml
14      - id: detect-private-key
15      - id: fix-byte-order-marker
16      - id: mixed-line-ending
17  - repo: https://github.com/kahnwong/pre-commit
18    rev: "791fd68"
19    hooks:
20      - id: go-fmt
21      - id: go-imports
22      - id: go-mod-tidy
23      - id: go-unit-tests
24      - id: go-vet
25      - id: golangci-lint
26      - id: yamlfmt
27      - id: shellcheck
28      - id: shfmt
29  - repo: local
30    hooks:
31      - id: go-build
32        name: go-build
33        entry: "make build"
34        language: system
35        types: [go]
36        pass_filenames: false
37        require_serial: true