-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
469 lines (420 loc) · 11.2 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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
default_language_version:
python: python3
fail_fast: false
repos:
- repo: meta
hooks:
#- id: check-hooks-apply
- id: check-useless-excludes
# pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-byte-order-marker
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
# - id: pretty-format-json
- id: check-json
- id: check-shebang-scripts-are-executable
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: destroyed-symlinks
# - id: detect-aws-credentials
- id: detect-private-key
# - id: double-quote-string-fixer
- id: end-of-file-fixer
- id: file-contents-sorter
- id: fix-byte-order-marker
# - id: fix-encoding-pragma
- id: forbid-new-submodules
- id: forbid-submodules
- id: mixed-line-ending
- id: name-tests-test
# - id: no-commit-to-branch
- id: requirements-txt-fixer
- id: sort-simple-yaml
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v2.0.0
hooks:
- id: autopep8
args: [--in-place, --list-fixes, --recursive, --exclude="*.cfg"]
#- repo: https://github.com/asottile/pyupgrade
# rev: v3.3.1
# hooks:
# - id: pyupgrade
#########
# clang #
#########
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v15.0.6" # Use the sha / tag you want to point at
hooks:
- id: clang-format
#########
# cmake #
#########
- repo: https://github.com/cmake-lint/cmake-lint
rev: 1.4.2
hooks:
- id: cmakelint
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
- id: cmake-lint
#######
# csv #
#######
# THIS IS BROKEN
#- repo: https://github.com/alan-turing-institute/CleverCSV-pre-commit
# rev: v0.7.4 # or any later version
# hooks:
# - id: clevercsv-standardize
##########
# cython #
##########
- repo: https://github.com/MarcoGorelli/cython-lint
rev: v0.9.1
hooks:
- id: cython-lint
- id: double-quote-cython-strings
########
# dart #
########
- repo: https://github.com/fluttercommunity/import_sorter
rev: "f350497a11b1285c695595049e95a420068e7a9f"
hooks:
- id: dart-import-sorter # use `flutter-import-sorter` for Flutter project
#############
# databooks #
#############
- repo: https://github.com/datarootsio/databooks
rev: 1.3.7
hooks:
- id: databooks-meta
- id: databooks-assert
args: ["--expr", "--recipe", "seq-exec"]
##############
# databricks #
##############
- repo: https://github.com/inspera/blackbricks
rev: 1.0.1
hooks:
- id: blackbricks
# args: [--line-length=120]
##########
# docker #
##########
- repo: https://github.com/AleksaC/hadolint-py
rev: v2.10.0
hooks:
- id: hadolint
- repo: https://github.com/hadolint/hadolint
rev: v2.12.1-beta
hooks:
- id: hadolint-docker
########
# docs #
########
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
hooks:
- id: blacken-docs
additional_dependencies: [black==22.12.0]
##########
# dotnet #
##########
#- repo: https://github.com/dotnet/format
# rev: 'v5.1.225507'
# hooks:
# - id: dotnet-format
- repo: local
hooks:
#Use dotnet format already installed on your machine
- id: dotnet-format
name: dotnet-format
language: system
entry: dotnet format --include
types_or: ["c#", "vb"]
##########
# eslint #
##########
- repo: https://github.com/pre-commit/mirrors-eslint
rev: "v8.29.0" # Use the sha / tag you want to point at
hooks:
- id: eslint
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]
###########
# flutter #
###########
- repo: https://github.com/fluttercommunity/import_sorter
rev: "f350497a11b1285c695595049e95a420068e7a9f"
hooks:
- id: flutter-import-sorter # use `dart-import-sorter` for a Dart project
######
# go #
######
- repo: https://github.com/golangci/golangci-lint
rev: "v1.50.1"
hooks:
- id: golangci-lint
########
# html #
########
- repo: https://github.com/thibaudcolas/curlylint
rev: "v0.13.1" # select a tag / sha to point at
hooks:
- id: curlylint
#######
# ini #
#######
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: "v2.5.0"
hooks:
- id: pretty-format-ini
args: [--autofix]
##############
# javascript #
##############
- repo: https://github.com/pre-commit/mirrors-jshint
rev: "v2.13.6" # Use the sha / tag you want to point at
hooks:
- id: jshint
#########
# jinja #
#########
# THIS IS BROKEN
#- repo: https://github.com/motet-a/jinjalint
# rev: '0.5'
# hooks:
# - id: jinjalint
##########
# jekyll #
##########
- repo: https://github.com/klieret/jekyll-relative-url-check
rev: v2.0.1
hooks:
- id: jekyll-relative-url-check-html
- id: jekyll-relative-url-check-markdown
##############
# jsonschema #
##############
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.19.2
hooks:
- id: check-jsonschema
files: ^data/.*\.json$
args: ["--schemafile", "schemas/foo.json"]
- id: check-metaschema
files: ^schemas/.*\.json$
- id: check-azure-pipelines
- id: check-bamboo-spec
- id: check-dependabot
- id: check-github-actions
- id: check-github-workflows
- id: check-gitlab-ci
- id: check-readthedocs
- id: check-renovate
additional_dependencies: ["pyjson5"]
- id: check-travis
###########
# jupyter #
###########
#- repo: https://github.com/psf/black
# rev: 22.12.0
# hooks:
# - id: black-jupyter
##########
# kotlin #
##########
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: "v2.5.0"
hooks:
- id: pretty-format-kotlin
args: [--autofix]
#########
# local #
#########
- repo: local
hooks:
- id: pylint
name: pylint
entry: symilar
language: system
types: [python]
args: [-i, --ignore-docstrings]
#- id: pytest
#name: pytest
#entry: pytest
#language: system
#types: [python]
#- id: pytest-cov
#name: pytest
#entry: pytest
#args:
#[
#"--cov=better_crypto",
#"--cov-config=.coveragerc",
#"--cov-report=html",
#"--cov-report=xml",
#"--cov-report=lcov",
#--cov-fail-under=1
#]
#language: system
#types: [python]
#pass_filenames: false
#########
# macOS #
#########
- repo: https://github.com/homebysix/pre-commit-macadmin
rev: v1.12.3
hooks:
- id: check-git-config-email
args: ["--domains", "gmail.com", "johnpatrickroach.com"]
- id: check-plists
#- id: check-munkipkg-buildinfo # https://www.munki.org/munki/
- id: check-outset-scripts # https://github.com/chilcote/outset/wiki
- id: check-autopkg-recipe-list # http://autopkg.github.io/autopkg/
- id: check-autopkg-recipes # http://autopkg.github.io/autopkg/
args: ["--strict"]
- id: forbid-autopkg-overrides # http://autopkg.github.io/autopkg/
- id: forbid-autopkg-trust-info # http://autopkg.github.io/autopkg/
#- id: check-jamf-extension-attributes
#- id: check-jamf-scripts
#- id: check-jamf-profiles
#- id: check-munki-pkgsinfo # https://www.munki.org/munki/
#- id: check-munkiadmin-scripts # https://www.munki.org/munki/
#- id: munki-makecatalogs # https://www.munki.org/munki/
#- id: check-munki-pkgsinfo # https://www.munki.org/munki/
#- id: check-munki-pkgsinfo # https://www.munki.org/munki/
#######
# pip #
#######
- repo: https://github.com/peterdemin/pip-compile-multi
rev: v2.6.1
hooks:
- id: pip-compile-multi-verify
########
# pocc #
########
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: clang-format
args: [--style=Google]
- id: clang-tidy
- id: oclint
- id: uncrustify
- id: cppcheck
- id: cpplint
- id: include-what-you-use
##########
# python #
##########
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/PyCQA/isort
rev: 5.11.2
hooks:
- id: isort
args: [--float-to-top, --profile black]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
hooks:
- id: mypy
args: [--install-types, --non-interactive]
pass_filenames: false
########
# ruby #
########
- repo: https://github.com/mattlqx/pre-commit-ruby
rev: v1.3.5
hooks:
- id: rubocop
- id: foodcritic
- id: cookstyle
- id: rspec
- id: chef-cookbook-version
- repo: https://github.com/pivotal/LicenseFinder
rev: v7.1.0
hooks:
- id: license-finder
########
# rust #
########
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: "v2.5.0"
hooks:
- id: pretty-format-rust
args: [--autofix]
############
# sourcery #
############
- repo: https://github.com/sourcery-ai/sourcery
rev: v1.0.2
hooks:
- id: sourcery
# The best way to use Sourcery in a pre-commit hook:
# * review only changed lines:
# * omit the summary
args: [--diff=git diff HEAD, --no-summary]
########
# toml #
########
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: "v2.5.0"
hooks:
- id: pretty-format-toml
args: [--autofix]
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.5.3
hooks:
- id: nbqa-pyupgrade
args: [--py37-plus]
- id: nbqa-mypy
args: [--install-types, --non-interactive]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0 # Use the ref you want to point at
hooks:
- id: python-use-type-annotations
- id: python-check-blanket-noqa
- id: python-check-blanket-type-ignore
- id: python-check-mock-methods
- id: python-no-eval
- id: python-no-log-warn
- id: python-use-type-annotations
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
- id: text-unicode-replacement-char
##########
# safety #
##########
#- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
# rev: v1.3.0
# hooks:
# - id: python-safety-dependencies-check
# args: [--disable-telemetry, --short-report]
########
# yaml #
########
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.28.0
hooks:
- id: yamllint