-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.pre-commit-config.yaml
53 lines (47 loc) · 1.25 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
run:
timeout: 5m
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.5.1"
hooks:
- id: prettier
exclude: ^docs/
- repo: https://github.com/golangci/golangci-lint
rev: "v1.43.0"
hooks:
- id: golangci-lint
- repo: https://github.com/dnephin/pre-commit-golang
rev: "ff05dff219bf08fb704e470117650205b8d1e8af"
hooks:
- id: go-mod-tidy
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: "v1.81.0"
hooks:
- id: terraform_fmt
- id: terraform_tflint
- repo: local
hooks:
- id: goreleaser-check
name: Run goreleaser check
description: Check if GoReleaser configuration is valid
language: system
entry: goreleaser check
files: ".goreleaser.yaml"
pass_filenames: false
- repo: local
hooks:
- id: checkmake
name: Run checkmake
description: Run checkmake against Makefile
language: system
entry: checkmake
files: "Makefile"
pass_filenames: true
- repo: local
hooks:
- id: go-generate
name: Run go generate
description: "Run go generate"
entry: go generate ./...
language: "system"
pass_filenames: false