-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprek.toml
More file actions
99 lines (79 loc) · 1.84 KB
/
Copy pathprek.toml
File metadata and controls
99 lines (79 loc) · 1.84 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
default_install_hook_types = ["pre-commit", "pre-push"]
default_stages = ["pre-commit"]
[[repos]]
repo = "builtin"
[[repos.hooks]]
id = "check-case-conflict"
[[repos.hooks]]
id = "check-merge-conflict"
args = ["--assume-in-merge"]
[[repos.hooks]]
id = "detect-private-key"
[[repos.hooks]]
id = "no-commit-to-branch"
[[repos.hooks]]
id = "check-added-large-files"
args = ["--maxkb=1024"]
[[repos.hooks]]
id = "trailing-whitespace"
args = ["--markdown-linebreak-ext=md"]
[[repos.hooks]]
id = "end-of-file-fixer"
[[repos.hooks]]
id = "check-json"
[[repos.hooks]]
id = "check-toml"
[[repos.hooks]]
id = "check-yaml"
[[repos]]
repo = "local"
[[repos.hooks]]
id = "gofmt"
name = "gofmt"
language = "system"
entry = "gofmt -w"
files = "\\.go$"
priority = 0
[[repos.hooks]]
id = "golangci-lint"
name = "golangci-lint"
language = "system"
entry = "golangci-lint run"
files = "^(go\\.mod|go\\.sum|.*\\.go)$"
pass_filenames = false
require_serial = true
priority = 10
[[repos.hooks]]
id = "testify-helper-check"
name = "testify helper check"
language = "system"
entry = "go run ./cmd/testify-helper-check ./..."
files = "^(go\\.mod|go\\.sum|.*_test\\.go|tools/testifyhelpercheck/.*\\.go|cmd/testify-helper-check/.*\\.go)$"
pass_filenames = false
require_serial = true
priority = 15
[[repos.hooks]]
id = "nilaway"
name = "nilaway"
language = "system"
entry = "go tool nilaway -include-pkgs=go.kenn.io/kit ./..."
stages = ["pre-push"]
files = "^(go\\.mod|go\\.sum|.*\\.go)$"
pass_filenames = false
require_serial = true
priority = 20
[[repos.hooks]]
id = "go-test"
name = "go test"
language = "system"
entry = "go tool gotestsum --format pkgname-and-test-fails -- ./..."
files = "^(go\\.mod|go\\.sum|.*\\.go)$"
pass_filenames = false
require_serial = true
priority = 25
[[repos]]
repo = "meta"
[[repos.hooks]]
id = "check-hooks-apply"
[[repos.hooks]]
id = "check-useless-excludes"