-
Notifications
You must be signed in to change notification settings - Fork 66
/
.pre-commit-config.yaml
49 lines (49 loc) · 1.3 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
exclude: |
(?x)^(
charts/.*/templates/.*|
mkdocs.yml
)$
args:
- --multi
- id: check-added-large-files
- repo: https://github.com/Bahjat/pre-commit-golang
rev: v1.0.2
hooks:
- id: gofumpt
types: [go]
exclude: ".*/zz_generated.*\\.go$"
- id: golangci-lint
types: [go]
args:
- --new-from-rev=HEAD
- repo: local
hooks:
- id: generate-deep-copy
name: generated deep-copy code must be up-to-date
language: system
pass_filenames: false
entry: make manifests
- id: run-tests
name: Run go tests
language: system
pass_filenames: false
entry: make test
- id: sync-chart
name: Run make sync-chart
language: system
pass_filenames: false
entry: make sync-chart
- id: check-docs
name: check docs builds
language: system
pass_filenames: false
entry: mkdocs build -s