-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
106 lines (106 loc) · 2.82 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: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-merge-conflict
- id: detect-aws-credentials
- id: detect-private-key
- id: mixed-line-ending
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: no-commit-to-branch
args:
- --pattern
- '^(?!((fix|feature)\/[a-zA-Z0-9\-]+)$).*'
- id: trailing-whitespace
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.42.1
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.20
hooks:
- id: helmlint
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: forbid-binary
exclude: ".*.(png|jpg|jpeg)$"
- 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/markdownlint/markdownlint
rev: v0.12.0
hooks:
- id: markdownlint
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.37.0
hooks:
- id: eslint
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
hooks:
- id: forbid-tabs
exclude: "^(.*/?Makefile|.*.mk|.*.go)$"
- 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.30.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 # use the most recent version
hooks:
# - id: docker-clang-format
- id: docker-cppcheck # cppcheck in Docker container
args:
- --force
# - id: insert-license
#files: \.js$
#args:
#- --license-filepath
#- COPYRIGHT
#- --comment-style
#- /*| *| */
# - id: insert-license
# files: \.yaml$
#args:
#- --license-filepath
#- COPYRIGHT
#- --comment-style
#- #
#- repo: https://github.com/doublify/pre-commit-clang-format
# rev: master
# hooks:
# - id: clang-format