-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprek.toml
More file actions
20 lines (19 loc) · 935 Bytes
/
prek.toml
File metadata and controls
20 lines (19 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[[repos]]
repo = "builtin"
hooks = [
{ id = "trailing-whitespace" },
{ id = "end-of-file-fixer" },
{ id = "check-toml" },
{ id = "check-yaml" },
{ id = "check-merge-conflict" },
{ id = "check-added-large-files" },
]
[[repos]]
repo = "local"
hooks = [
{ id = "go-mod-tidy", name = "go mod tidy", language = "system", entry = "go mod tidy", pass_filenames = false, always_run = true },
{ id = "gofmt", name = "gofmt", language = "system", entry = "gofmt -l -w", files = '\.go$', types = ["go"] },
{ id = "go-vet", name = "go vet", language = "system", entry = "go vet ./...", pass_filenames = false, always_run = true },
{ id = "golangci-lint", name = "golangci-lint", language = "system", entry = "golangci-lint run", pass_filenames = false, always_run = true },
{ id = "go-test", name = "go test", language = "system", entry = "go test ./...", pass_filenames = false, always_run = true, stages = ["manual"] },
]