-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
43 lines (38 loc) · 1.09 KB
/
.pre-commit-config.yaml
File metadata and controls
43 lines (38 loc) · 1.09 KB
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
repos:
- repo: local
hooks:
- id: goimports
name: goimports
entry: bash -c 'goimports -w $(find . -name "*.go" -not -path "./vendor/*") && git diff --exit-code'
language: system
types: [go]
pass_filenames: false
- id: go-fmt
name: go fmt
entry: bash -c 'go fmt ./... && git diff --exit-code'
language: system
types: [go]
pass_filenames: false
- id: golangci-lint
name: golangci-lint
entry: golangci-lint run --timeout 5m
language: system
types: [go]
pass_filenames: false
- id: dprint
name: dprint
entry: dprint check
language: system
types_or: [markdown, yaml, json]
- id: actionlint
name: actionlint
entry: actionlint
language: system
files: ^\.github/workflows/.*\.ya?ml$
pass_filenames: false
- id: docs-check
name: docs-check
entry: python3 scripts/check_docs.py
language: system
files: (\.go$|docs/src/.*\.md$)
pass_filenames: false