-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
114 lines (114 loc) · 3.08 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_stages: [pre-commit]
exclude: >
(?x)^(
.pytest_cache|
.ruff_cache|
.terraform|
.vscode/launch.json|
data
)
repos:
- repo: https://github.com/psf/black
rev: "24.10.0"
hooks:
- id: black
- id: black-jupyter
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-shebang-scripts-are-executable
# - id: pretty-format-json
# args: ["--autofix"]
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: destroyed-symlinks
- id: detect-aws-credentials
args: ["--allow-missing-credentials"]
- id: detect-private-key
# - id: double-quote-string-fixer
- id: end-of-file-fixer
exclude: "charts/README.md"
- id: file-contents-sorter
- id: fix-byte-order-marker
- id: fix-encoding-pragma
args: ["--remove"]
- id: forbid-new-submodules
- id: mixed-line-ending
- id: name-tests-test
# - id: no-commit-to-branch
- id: requirements-txt-fixer
- id: sort-simple-yaml
- id: trailing-whitespace
- repo: https://github.com/commitizen-tools/commitizen
rev: "v3.31.0"
hooks:
- id: commitizen
stages:
- commit-msg
- repo: https://github.com/adrienverge/yamllint
rev: "v1.35.1"
hooks:
- id: yamllint
# - repo: https://github.com/jumanjihouse/pre-commit-hooks
# rev: 3.0.0
- repo: https://github.com/jlec/pre-commit-hooks
rev: "gh-111"
hooks:
# - id: bundler-audit
- id: check-mailmap
# - id: fasterer
- id: forbid-binary
# - id: forbid-space-in-indent
# - id: git-check
# - id: git-dirty
# - id: markdownlint
# - id: protect-first-parent
# - id: reek
# - id: require-ascii
# - id: rubocop
- id: shellcheck
# - id: script-must-have-extension
# - id: script-must-not-have-extension
- id: shfmt
- repo: https://github.com/jlec/pre-commit-cruft
rev: "v0.1.1"
hooks:
- id: cruft
stages: ["pre-push"]
- repo: https://github.com/hadolint/hadolint
rev: "v2.13.1-beta"
hooks:
- id: hadolint-docker
- repo: https://github.com/ComPWA/taplo-pre-commit
rev: "v0.9.3"
hooks:
- id: taplo-lint
- id: taplo-format
- repo: https://github.com/zricethezav/gitleaks
rev: "v8.21.2"
hooks:
- id: gitleaks
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: "0.29.4"
hooks:
- id: check-github-workflows
- repo: https://github.com/gitguardian/ggshield
rev: "v1.33.0"
hooks:
- id: ggshield
stages: ["pre-push"]