-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
90 lines (81 loc) · 2.62 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
90 lines (81 loc) · 2.62 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.11.21
hooks:
- id: uv-lock
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.17
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: https://github.com/djlint/djLint
rev: v1.39.2
hooks:
- id: djlint-reformat-django
- id: djlint-django
- repo: https://github.com/hukkin/mdformat
rev: 1.0.0
hooks:
- id: mdformat
exclude: ^docs/ # docs/ uses the mkdocs flavor below
additional_dependencies:
- mdformat-gfm # GitHub Flavored Markdown support
- mdformat-frontmatter # Don't mess with YAML front matter blocks
- id: mdformat
name: mdformat (docs)
files: ^docs/ # Zensical sources: admonitions and content tabs need the mkdocs plugin
additional_dependencies:
- mdformat-mkdocs # MkDocs/Material syntax (admonitions, content tabs, 4-space lists)
- mdformat-frontmatter # Don't mess with YAML front matter blocks
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v10.0.1
hooks:
- id: cspell # Spell check changed files
- id: cspell # Spell check the commit message
name: check commit message spelling
args:
- --no-must-find-files
- --no-progress
- --no-summary
- --files
- .git/COMMIT_EDITMSG
stages: [commit-msg]
always_run: true
- repo: https://github.com/PyCQA/bandit
rev: 1.9.4
hooks:
- id: bandit
args: ["-c", "pyproject.toml"]
additional_dependencies: ["bandit[toml]"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py314-plus]
# Renovate config validator. Catches a typo in renovate.json5 before it silently breaks updates.
# rev is Renovate's bare semver with NO "v" prefix; Renovate keeps it bumped via the pre-commit
# manager (it lands in the "pre-commit hooks" group).
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 43.227.0
hooks:
- id: renovate-config-validator
args: [--strict]
- repo: local
hooks:
- id: zuban
name: zuban type check
entry: zuban check
language: system
types: [python]
pass_filenames: true