-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
71 lines (71 loc) · 2.06 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
# non-default
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: detect-private-key
- id: mixed-line-ending
- id: pretty-format-json
args: ["--autofix"]
- repo: https://github.com/google/yamlfmt
rev: v0.11.0
hooks:
- id: yamlfmt
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.9.0
hooks:
- id: shellcheck
args: ["--color=always", "--external-sources"]
types: ["executable", "file", "shell", "text"]
exclude: |
(?x)^(
SCRIPTS_ARCHIVE/.*|
path/to/file.py
)$
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.8.0-1
hooks:
- id: shfmt
args: ["--diff", "--indent", "2", "--binary-next-line", "--space-redirects", "--case-indent"]
types: ["executable", "file", "shell", "text"]
exclude: |
(?x)^(
SCRIPTS_ARCHIVE/.*|
path/to/file.py
)$
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.2
hooks:
- id: gitleaks
- repo: https://github.com/amperser/proselint
rev: 0.13.0
hooks:
- id: proselint
types: ["asciidoc", "file", "non-executable", "plain-text", "text"]
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.4.0
hooks:
- id: cspell
args: ["--locale", "en,en-US,de-DE"]
exclude: |
(?x)^(
\.proselintrc.json|
cSpell_dict.txt|
.*.cast|
path/to/file.py
)$