-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
61 lines (61 loc) · 1.93 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0 # Use latest available version
hooks:
- id: check-added-large-files
args: ['--maxkb=512']
- id: check-case-conflict
- id: check-executables-have-shebangs # Shell
- id: check-shebang-scripts-are-executable # Shell
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml # YAML
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: forbid-submodules
- id: mixed-line-ending
args: ['--fix=lf']
- id: trailing-whitespace
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.7.0-4 # Use the latest release of shfmt
hooks:
- id: shfmt # Shell
args: [-i, '2', -w]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0 # Spellcheck uses version 0.9.0 installed locally
hooks:
- id: shellcheck # Shell
args: [--enable, all, -x]
- id: git-check
- id: git-dirty
- id: script-must-have-extension # Shell
types: [shell, non-executable]
- id: script-must-not-have-extension # Shell
types: [shell, executable]
- id: forbid-binary
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.38.0
hooks:
- id: markdownlint # Markdown
args: ["--fix"]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
- id: forbid-crlf
- id: forbid-tabs
- repo: https://gitlab.com/bmares/check-json5
rev: v1.0.0
hooks:
- id: check-json5 # JSON
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1 # Latest version from adrien
hooks:
- id: yamllint # YAML
args: [--format, parsable, --strict]
- repo: https://github.com/google/yamlfmt
rev: v0.14.0 # Latest version from Google
hooks:
- id: yamlfmt # YAML