-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
106 lines (106 loc) · 2.84 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
98
99
100
101
102
103
104
105
106
---
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
- id: end-of-file-fixer
- id: mixed-line-ending
- id: no-commit-to-branch
args:
- --pattern
- '^(?!((fix|feature|refactor)\/[a-zA-Z0-9\-]+)$).*'
- id: trailing-whitespace
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.39.1
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.17
hooks:
- id: helmlint
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v2.7.1' # Use the sha / tag you want to point at
hooks:
- id: prettier
files: ".*(js|jsx|ts|tsx)"
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: forbid-binary
exclude: ".*.(png|jpg|jpeg|tar.gz)$"
- id: shellcheck
args:
- -a
- -x
- -P
- SCRIPTDIR
- id: script-must-have-extension
- id: script-must-not-have-extension
- id: shfmt
args:
- -l
- -i
- "2"
- -ci
- repo: https://github.com/markdownlint/markdownlint
rev: v0.12.0
hooks:
- id: markdownlint
exclude: "docs/api/openapi.md"
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.32.0
hooks:
- id: eslint
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.4.1
hooks:
- id: forbid-tabs
exclude: "^(.*/?Makefile|.*.mk|.*.go)$"
- repo: https://github.com/doublify/pre-commit-go
rev: 208a4aaa7f86b44e961eaaea526743b920e187a0
hooks:
- id: fmt
- id: vet
- id: fix
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
- id: cargo-check
- repo: https://github.com/adrienverge/yamllint
rev: v1.29.0
hooks:
- id: yamllint
exclude: ".*/templates/.*"
- 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-clang-format
- id: cpplint
- id: docker-cppcheck
args:
- --force