forked from luminartech/dev-tools
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
190 lines (188 loc) · 5.04 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
190 lines (188 loc) · 5.04 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
default_stages:
- pre-commit
ci:
autoupdate_commit_msg: 'chore(deps): pre-commit.ci autoupdate'
autoupdate_schedule: quarterly # We want to do updates via renovate since we can exclude hooks from being updated
autofix_commit_msg: 'style: pre-commit.ci fixes'
skip:
- ty
- uv-audit
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/hofbi/dev-tools
rev: 1.12.1
hooks:
- id: check-sys-path-append
- id: check-sys-path-insert
- id: check-readme-md-consistency
- id: generate-hook-docs
- id: check-shellscript-set-options
- id: check-non-existing-and-duplicate-excludes
- id: sync-vscode-config
args:
- --verbose
- id: check-max-one-sentence-per-line
- id: sync-tool-versions
- repo: https://github.com/pre-commit/pre-commit
rev: v4.6.2
hooks:
- id: validate_manifest
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config
rev: v1.6.1
hooks:
- id: check-pre-commit-ci-config
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
args:
- --maxkb=1024
- id: check-ast
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-illegal-windows-names
- id: check-json
exclude: |
(?x)^(
.devcontainer/devcontainer.json|
.vscode/
)
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-vcs-permalinks
- id: debug-statements
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
args:
- --fix=lf
- id: name-tests-test
args:
- --pytest-test-first
- id: no-commit-to-branch
args:
- --branch
- master
- id: pretty-format-json
args:
- --autofix
exclude: |
(?x)^(
.devcontainer/devcontainer.json|
.vscode/
)
- id: trailing-whitespace
- repo: https://github.com/mattlqx/pre-commit-search-and-replace
rev: v1.1.9
hooks:
- id: search-and-replace
language_version: default # https://github.com/mattlqx/pre-commit-search-and-replace/issues/28
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.4
hooks:
- id: ruff-format
- id: ruff-check
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.12.5
hooks:
- id: uv-lock
- id: uv-audit
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-blanket-type-ignore
- id: python-check-mock-methods
- id: python-no-eval
- id: python-no-log-warn
- id: python-use-type-annotations
- id: text-unicode-replacement-char
- repo: https://github.com/PyCQA/autoflake
rev: v2.4.0
hooks:
- id: autoflake
- repo: https://github.com/MarcoGorelli/auto-walrus
rev: 0.4.1
hooks:
- id: auto-walrus
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: forbid-binary
always_run: true
- repo: https://github.com/pappasam/toml-sort
rev: v0.24.4
hooks:
- id: toml-sort-fix
exclude: "\\.lock$"
- repo: https://github.com/google/yamlfmt
rev: v0.21.0
hooks:
- id: yamlfmt
- repo: https://github.com/adrienverge/yamllint
rev: v1.38.0
hooks:
- id: yamllint
args:
- --strict
- repo: https://github.com/astral-sh/ty-pre-commit
rev: v0.0.74
hooks:
- id: ty
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
args:
- --py310-plus
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.38.0
hooks:
- id: check-github-workflows
- id: check-renovate
- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
hooks:
- id: actionlint
- repo: https://github.com/crate-ci/typos
rev: v1.49.0
hooks:
- id: typos
exclude_types:
- svg
- repo: https://github.com/rvben/rumdl-pre-commit
rev: v0.2.60
hooks:
- id: rumdl-fmt
language: python # ensures that Renovate can update additional_dependencies
additional_dependencies:
- shuck-cli==0.1.3
- id: rumdl
- repo: https://github.com/jendrikseipp/vulture
rev: v2.16
hooks:
- id: vulture
pass_filenames: true
- repo: https://github.com/google/keep-sorted
rev: v0.10.0
hooks:
- id: keep-sorted
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.13.1-1
hooks:
- id: shfmt
- repo: https://github.com/ewhauser/shuck
rev: v0.1.3
hooks:
- id: shuck
args:
- "--fix"
exclude_types:
- yaml