-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
78 lines (69 loc) · 2.21 KB
/
.pre-commit-config.yaml
File metadata and controls
78 lines (69 loc) · 2.21 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.18.1
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.10.12
hooks:
- id: uv-lock
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.7
hooks:
- id: ruff-check
args: ["--fix"]
- id: ruff-format
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.30.0
hooks:
- id: django-upgrade
- repo: https://github.com/instrumentl/pre-commit-just
rev: v0.1
hooks:
- id: format-justfile
- repo: https://github.com/google/yamlfmt
rev: v0.21.0
hooks:
- id: yamlfmt
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.37.0
hooks:
# TODO:
# Consider migration to actionlint
# https://github.com/python-jsonschema/check-jsonschema/issues/586
# https://github.com/rhysd/actionlint
- id: check-github-workflows
# https://check-jsonschema.readthedocs.io/en/stable/precommit_usage.html#check-a-builtin-schema
- id: check-jsonschema
name: "Check GitHub Workflows set timeout-minutes"
files: ^\.github/workflows/[^/]+$
types: [yaml]
args: ["--builtin-schema", "github-workflows-require-timeout"]
# https://github.com/python-jsonschema/check-jsonschema/pull/643#issuecomment-3903138224
# https://github.com/python-jsonschema/check-jsonschema/issues/586
- id: check-renovate
files: ^renovate.json5$
language: python
additional_dependencies:
- pyjson5==2.0.0
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.23.1
hooks:
- id: zizmor
args: ["--no-progress", "--persona=auditor"]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
args: ["--ignore-words-list", "ABL, wast"]