-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
131 lines (114 loc) · 3.64 KB
/
.pre-commit-config.yaml
File metadata and controls
131 lines (114 loc) · 3.64 KB
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
default_install_hook_types: [pre-commit, commit-msg]
default_language_version:
python: python3.13
default_stages: [pre-commit, pre-merge-commit, manual]
repos:
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.11.3
hooks:
- id: uv-lock
always_run: true
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.1
hooks:
- id: gitleaks
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
- repo: https://github.com/tombi-toml/tombi-pre-commit
rev: v0.9.15
hooks:
- id: tombi-format
- id: tombi-lint
- repo: https://github.com/tsvikas/sync-with-uv
rev: v0.5.0
hooks:
- id: sync-with-uv
- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
hooks:
- id: actionlint
additional_dependencies: [github.com/wasilibs/go-shellcheck/cmd/shellcheck@latest] # yamllint disable-line rule:key-ordering
args: [-pyflakes=]
- repo: https://github.com/dotenv-linter/dotenv-linter
rev: v4.0.0
hooks:
- id: dotenv-linter
args: [fix, --no-backup]
- repo: https://github.com/hadolint/hadolint
rev: v2.14.0
hooks:
- id: hadolint-docker
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.38.0
hooks:
- id: yamllint
args: [--strict]
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 43.104.10
hooks:
- id: renovate-config-validator
args: [--strict]
stages: [manual]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.37.1
hooks:
- id: check-jsonschema
args: [--schemafile, 'https://json.schemastore.org/yamllint.json'] # yamllint disable-line rule:quoted-strings
files: ^\.yamllint\.yaml$ # yamllint disable-line rule:key-ordering
name: Check yamllint configuration file
types: [yaml]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
- id: gitlint-ci
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-illegal-windows-names
- id: check-shebang-scripts-are-executable
- id: check-vcs-permalinks
- id: destroyed-symlinks
- id: check-case-conflict
- id: name-tests-test
args: [--pytest-test-first]
files: (?:^|\/)tests\/(?:[^\/]+\/)*(?!_)[^\/]+\.py$ # yamllint disable-line rule:key-ordering
- id: pretty-format-json
args: [--autofix, --indent, "4"]
- repo: builtin
hooks:
- id: check-added-large-files
- id: trailing-whitespace
- id: check-executables-have-shebangs
- id: check-json
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: check-xml
- id: check-symlinks
- id: check-merge-conflict
- id: mixed-line-ending
args: [--fix=lf]
- id: detect-private-key
- id: fix-byte-order-marker
args: [-h]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.16.0
hooks:
- id: pretty-format-ini
args: [--autofix]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.10
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: https://github.com/google/yamlfmt
rev: v0.21.0
hooks:
- entry: yamlfmt
id: yamlfmt
pass_filenames: true
types: [yaml]