-
Notifications
You must be signed in to change notification settings - Fork 44
/
.pre-commit-config.yaml
53 lines (53 loc) · 1.32 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-json
exclude: "^.vscode/"
stages: [pre-commit]
- id: check-merge-conflict
stages: [pre-commit]
- id: check-case-conflict
stages: [pre-commit]
- id: detect-private-key
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]
- id: trailing-whitespace
stages: [pre-commit]
- repo: https://github.com/crate-ci/committed
rev: v1.0.20
hooks:
- id: committed
stages: [commit-msg]
- repo: https://github.com/crate-ci/typos
rev: v1.22.9
hooks:
- id: typos
args: ["--diff", "--force-exclude"]
exclude: "^.vscode/|go.mod|_test.go"
- repo: local
hooks:
- id: go-mod-tidy
name: go mod tidy
entry: go
args: ["mod", "tidy"]
language: system
types: [go]
pass_filenames: false
stages: [pre-commit]
- id: lint
name: lint
entry: make
args: ["lint"]
language: system
types: [go]
pass_filenames: false
stages: [pre-commit]
- id: build
name: build
entry: make
language: system
types: [go]
pass_filenames: false
stages: [pre-commit]