-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
211 lines (211 loc) · 6.34 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
---
repos:
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.13.0
hooks:
- name: commitlint
id: commitlint
stages:
- commit-msg
additional_dependencies:
- "@commitlint/config-conventional"
description: >-
Ensure commit messages follow Conventional Commit spec
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- name: gitlint
id: gitlint
description: >-
Lint git commit messages.
- repo: https://github.com/mattlqx/pre-commit-sign
rev: v1.1.3
hooks:
- name: sign-commit
id: sign-commit
language_version: 3.1.0
stages:
- commit-msg
description: >-
Ensure commit messages are signed
- repo: https://github.com/zricethezav/gitleaks
rev: v8.18.2
hooks:
- name: gitleaks
id: gitleaks
description: >-
Detect hardcoded secrets using Gitleaks
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- name: forbid-crlf
id: forbid-crlf
description: >-
forbid CRLF (carriage return) line endings (added in
Windows by default)
- name: remove-crlf
id: remove-crlf
description: >-
remove CRLF (carriage return) line endings (added in
Windows by default)
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 2.7.3
hooks:
- name: editorconfig-checker
id: editorconfig-checker
exclude: CHANGELOG.md
description: >-
Ensure files are consistent with .editorconfig
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
- name: markdownlint-fix
id: markdownlint-fix
description: >-
automatically fix markdown errors.
- name: markdownlint
id: markdownlint
args:
- -c
- .markdownlint.yaml
description: >-
Lint markdown Documents
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.18
hooks:
- name: shfmt
id: shfmt
description: >-
Check shell style with shfmt
- name: shellcheck
id: shellcheck
description: >-
Shell scripts conform to shellcheck
- repo: https://github.com/google/yamlfmt
rev: v0.11.0
hooks:
- name: yamlfmt
id: yamlfmt
exclude: .*docker-compose.*
args:
- -conf
- .yamlfmt
description: >-
Ensure YAML files are formatted
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
name: yamllint
exclude: .*docker-compose.*|Taskfile.*.yaml
args:
- --format
- parsable
- --strict
description: >-
Ensure YAML files are valid
- repo: https://github.com/IamTheFij/docker-pre-commit
rev: v3.0.1
hooks:
- id: docker-compose-check
name: docker-compose-check
description: >-
ensure validity of docker-compose files
- repo: https://github.com/hadolint/hadolint.git
rev: v2.12.1-beta
hooks:
- id: hadolint-docker
name: hadolint-docker
entry: hadolint/hadolint hadolint
description: >-
Lint Dockerfiles with hadolint
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
name: prettier-markdown
alias: prettier-markdown
args:
- --print-width=79
- --prose-wrap=always
- --parser=markdown
files: \.(md|mdown|markdown)$
description: >-
Fix some markdown formatting issues with Prettier
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
name: check-added-large-files
args:
- --maxkb=1024
description: >-
prevents giant files from being committed.
- id: mixed-line-ending
name: mixed-line-ending
args:
- --fix=lf
description: >-
replaces or checks mixed line ending.
- id: trailing-whitespace
name: trailing-whitespace
args:
- --markdown-linebreak-ext=md
description: >-
trims trailing whitespace.
- id: detect-private-key
name: detect-private-key
exclude: .gitleaks.toml
description: >-
detects the presence of private keys.
- id: check-merge-conflict
name: check-merge-conflict
description: >-
checks for files that contain merge conflict strings.
- id: fix-byte-order-marker
name: fix-byte-order-marker
description: >-
removes utf-8 byte order marker.
- id: check-case-conflict
name: check-case-conflict
description: >-
checks for files that would conflict in case-insensitive
filesystems.
- id: check-executables-have-shebangs
name: check-executables-have-shebangs
description: >-
ensures that (non-binary) executables have a shebang.
- id: check-shebang-scripts-are-executable
name: check-shebang-scripts-are-executable
description: >-
ensures that (non-binary) files with a shebang are executable
- id: check-symlinks
name: check-symlinks
description: >-
checks for symlinks which do not point to anything.
- id: destroyed-symlinks
name: destroyed-symlinks
description: >-
detects symlinks which are changed to regular files
with a content of a path which that symlink was pointing
to.
- id: end-of-file-fixer
name: end-of-file-fixer
description: >-
ensures that a file is either empty, or ends with one
newline.
- id: check-json
name: check-json
description: >-
ensures that JSON files are parseable.
- id: check-toml
name: check-toml
description: >-
ensures that TOML files are parseable.
- id: check-yaml
name: check-yaml
exclude: .*docker-compose.*
args:
- --allow-multiple-documents
description: >-
ensures that YAML files are parseable.