-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
70 lines (70 loc) · 2.05 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
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
ci:
autofix_prs: true
skip:
- ggshield
- golangci-lint
default_install_hook_types:
- pre-commit
- commit-msg
repos:
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.40.0
hooks:
- id: markdownlint
stages: [commit]
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.1.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [] # optional: list of Conventional Commits types to allow e.g. [feat, fix, ci, chore, test]
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.7.0-4
hooks:
- id: shfmt
exclude: |
(?x)^(
exact_private_dot_bashrc.d/05-complete-alias.bash|
exact_private_dot_bashrc.d/10-bash-preexec.bash|
exact_private_dot_bashrc.d/20-.*.bash|
exact_private_dot_zprofile.d/.*|
exact_private_dot_zshenv.d/.*|
exact_private_dot_zshrc.d/.*
)$
stages: [commit]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
hooks:
- id: shellcheck
exclude: |
(?x)^(
exact_private_dot_bashrc.d/05-complete-alias.bash|
exact_private_dot_bashrc.d/10-bash-preexec.bash|
exact_private_dot_bashrc.d/20-.*.bash|
exact_private_dot_zprofile.d/.*|
exact_private_dot_zshenv.d/.*|
exact_private_dot_zshrc.d/.*
)$
stages: [commit]
- repo: https://github.com/google/yamlfmt
rev: v0.10.0
hooks:
- id: yamlfmt
entry: yamlfmt
language: system
stages: [commit]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.33.0
hooks:
- id: yamllint
args: [--strict, -c=.yamllint]
stages: [commit]
- repo: https://github.com/gitguardian/ggshield
rev: v1.24.0
hooks:
- id: ggshield
language_version: python3
stages: [commit]