-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.pre-commit-config.yaml
91 lines (86 loc) · 2.88 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
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
repos:
- repo: local
hooks:
- id: avoid-old-names
name: Avoid old names and use use "Welkin" instead
entry: "(Compliant[ ]Kubernetes|C[kK]8[sS][^_]|Complaint)"
language: pygrep
types: [text]
exclude: ^(bin/|.pre-commit-config.yaml$)
- id: avoid-old-website-urls
name: Avoid old URLs and use "https://elastisys.io/welkin" instead
entry: "elastisys.io/compliantkubernetes"
language: pygrep
types: [text]
exclude: ^.pre-commit-config.yaml$
- id: consistent-trademark
name: Either use the trademark "Elastisys Welkin®" consistently or "Welkin" on its own
entry: "(?<!Elastisys )\\bWelkin®"
language: pygrep
types: [text]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-executables-have-shebangs
exclude: ^rook/helmfile.d/upstream/
- id: check-merge-conflict
- id: check-json
exclude: ^rook/helmfile.d/upstream/
- id: check-toml
exclude: ^rook/helmfile.d/upstream/
- id: check-yaml
exclude: ^rook/helmfile.d/(upstream/|charts/.*/templates/|helmfile.yaml$)
args:
- --allow-multiple-documents
- id: detect-private-key
exclude: ^rook/helmfile.d/upstream/
- id: end-of-file-fixer
exclude: ^rook/helmfile.d/upstream/
- id: mixed-line-ending
- id: no-commit-to-branch
- id: trailing-whitespace
exclude: ^rook/helmfile.d/upstream/
- repo: local
hooks:
- id: shellcheck
name: check scripts
types: [shell]
exclude_types: [csh, tcsh, zsh]
exclude: ^rook/helmfile.d/upstream/
language: script
require_serial: true
entry: scripts/run-from-container.sh
args:
- --network=none
- docker.io/koalaman/shellcheck:v0.10.0@sha256:2097951f02e735b613f4a34de20c40f937a6c8f18ecb170612c88c34517221fb
- --color=always
- --external-sources
- id: shfmt
name: format scripts
types: [shell]
exclude_types: [csh, tcsh, zsh]
exclude: ^rook/helmfile.d/upstream/
language: script
require_serial: true
entry: scripts/run-from-container.sh
args:
- --network=none
- docker.io/mvdan/shfmt:v3.10.0@sha256:d19cc37644449fe9a488f234d2c0cf0b770eaf6a5a40e30103e8099013ef8f9e
- -w
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
name: check spelling
exclude: ^rook/helmfile.d/upstream/
args:
- -I
- .codespellignore
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.14.0
hooks:
- id: markdownlint-cli2
name: lint markdown files
exclude: ^changelog/|^rook/helmfile.d/upstream/
args:
- --fix