-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
91 lines (91 loc) · 2.96 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# cspell:ignore autofix shellcheck shfmt yamlfmt gitleaks unattend scrollback
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
# TODO: Re-think design?
#- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-xml
- 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"]
- 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"]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.2
hooks:
- id: gitleaks
args: ["--no-banner"]
- 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
additional_dependencies:
- "@cspell/dict-de-de"
- "@cspell/dict-vim"
- "@cspell/dict-win32"
args:
- "--locale"
- "en,en-US,de-DE"
- "--no-progress"
- "--no-summary"
# Include files and directories starting with '.' when matching
# globs.
- "--dot"
# Show the surrounding text around an issue.
- "--show-context"
# Ignore files matching glob patterns found in .gitignore files.
#- "--gitignore"
# For easier adding of words to dictionaries.
#- "--words-only"
#- "--unique"
# This might eventually be useful for some tricky issues.
#- "--verbose"
#- "--no-cache"
#- "--cache-reset"
# Not useful at all unless you are prepared to filter JSON output
# longer than your scrollback buffer.
#- "--debug"
types: ["file", "text"]
exclude: |
(?x)^(
\.gitignore|
\.proselintrc\.json|
DOCS/README_boot_firmware_server.md|
DOCS/assets/oem-config\.log|
.*\.cast|
path/to/file\.py
)$