-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
61 lines (61 loc) · 1.9 KB
/
.pre-commit-config.yaml
File metadata and controls
61 lines (61 loc) · 1.9 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
exclude: ^charts/crds/.*\.yaml$
stages: [pre-commit]
- id: trailing-whitespace
exclude: ^charts/crds/.*\.yaml$
stages: [pre-commit]
- id: check-added-large-files
stages: [pre-commit]
- id: check-merge-conflict
stages: [pre-commit]
- id: detect-private-key
stages: [pre-commit]
- repo: local
hooks:
- id: go-fmt
name: go fmt
entry: gofmt -l -w
language: system
types: [go]
exclude: ^vendor/
stages: [pre-commit]
- id: verify-codegen
name: verify generated code
entry: bash -c 'make generate && git diff --exit-code pkg/apis/ charts/crds/ || (echo "Generated code is out of date. Run make generate and commit." && exit 1)'
language: system
pass_filenames: false
stages: [pre-commit]
- id: verify-vendor
name: verify vendor
entry: bash -c 'make vendor && git diff --exit-code vendor/ || (echo "Vendor directory is out of date. Run make vendor and commit." && exit 1)'
language: system
pass_filenames: false
stages: [pre-commit]
- id: go-test
name: go test
entry: go test ./...
language: system
pass_filenames: false
stages: [pre-push]
- repo: https://github.com/golangci/golangci-lint
rev: v2.10.1
hooks:
- id: golangci-lint
entry: golangci-lint run
args: [--timeout=5m]
stages: [pre-commit]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.45.0
hooks:
- id: markdownlint
args: [--disable, MD013, MD002]
stages: [pre-commit]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
stages: [pre-commit]