-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
82 lines (81 loc) · 2.22 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
default_stages:
- commit
repos:
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
args: [--ignore-words=.codespell-ignores]
exclude: >
(?x)^(
.+\.vendor\/.*$|
.+\.node_modules\/.*$|
.+\.lock$|
)$
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v5.0.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@hadenlabs/commitlint-config']
args:
- --config=.github/linters/.commitlintrc.json
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: detect-private-key
files: ^(?!\.?git-crypt)
exclude: >
(?x)^(
.+\.gitleaks.toml$|
)$
- id: check-merge-conflict
- id: check-added-large-files
files: ^tf|-|\.(py|env|yml|yaml)$
- id: check-case-conflict
- id: check-json
- id: check-xml
- id: check-yaml
- id: check-byte-order-marker
- id: check-ast
- id: debug-statements
- id: check-docstring-first
- id: requirements-txt-fixer
- id: check-symlinks
- id: name-tests-test
args:
- --django
- id: file-contents-sorter
- id: fix-encoding-pragma
- id: sort-simple-yaml
- repo: https://github.com/hadenlabs/pre-commit-hooks
rev: 32eda4af34084f4e03d83a75b0ae3d2b91b45246
hooks:
- id: do-not-commit
- id: markdown-link-check
args:
- --config=.github/linters/markdown-link-config.json
exclude: \.tpl.md$
- id: shellcheck
exclude: >
(?x)^(
.+\.provision/git/hooks/prepare-commit-msg$|
.+\.tpl.sh$|
)$
args:
- --exclude=SC1072,SC1073,SC2068
- id: todocheck
- id: gitleaks
args:
- --path=.
- --repo-config-path=.github/linters/.gitleaks.toml
- --verbose
- id: hadolint
args:
- --ignore=SC2001
- --ignore=SC2086
- --ignore=SC2102
- --ignore=DL3008
- --ignore=DL3013
- --ignore=DL3018
- --ignore=DL4006