-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
97 lines (97 loc) · 2.67 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
92
93
94
95
96
97
---
default_language_version:
# force all unspecified python hooks to run python3
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-yaml
exclude: "charts/.*"
args:
- --allow-multiple-documents
- id: detect-aws-credentials
args:
- --allow-missing-credentials
- id: detect-private-key
exclude: "api/src/lib.rs"
- id: end-of-file-fixer
exclude: "docs/diagrams/out/.*"
- id: mixed-line-ending
exclude: "docs/diagrams/out/.*"
- id: no-commit-to-branch
args:
- --pattern
- '^(?!((fix|feature|refactor)\/[a-zA-Z0-9\-]+)$).*'
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: "docs/docs/diagrams/out/.*"
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.42.0
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.18
hooks:
- id: helmlint
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: forbid-binary
exclude: "^(.*.png|.*.jpg|.*.jpeg|charts/chronicle/charts/.*)"
- id: shellcheck
args:
- -a
- -x
- -e
- SC1072,SC1073
- id: script-must-have-extension
- id: script-must-not-have-extension
- id: shfmt
args:
- -l
- -i
- "2"
- -ci
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.34.0
hooks:
- id: eslint
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.4.2
hooks:
- id: forbid-tabs
exclude: "^(.*/?Makefile|.*.mk|.*.go|docs/diagrams/out/.*)$"
- repo: https://github.com/doublify/pre-commit-go
rev: 208a4aaa7f86b44e961eaaea526743b920e187a0
hooks:
- id: fmt
- id: vet
- id: fix
- repo: https://github.com/adrienverge/yamllint
rev: v1.29.0
hooks:
- id: yamllint
exclude: ".*/templates/.*|charts/.*"
args:
- -c
- .yamllint-config.yaml
- repo: https://github.com/IamTheFij/docker-pre-commit
rev: v2.1.1
hooks:
- id: docker-compose-check
files: docker-compose.*y[a]{0,1}ml$
- id: docker-compose-check
files: "^docker/.*yaml$"
- repo: https://gitlab.com/daverona/pre-commit/cpp
rev: 0.8.0
hooks:
- id: docker-cppcheck
args:
- --force