-
Notifications
You must be signed in to change notification settings - Fork 172
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
90 lines (90 loc) · 3.13 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
90 lines (90 loc) · 3.13 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
ci:
autofix_prs: false
autoupdate_commit_msg: "pre-commit: bump repositories"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
hooks:
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-merge-conflict
- id: check-yaml
- id: check-toml
exclude: tests/packages/test-(bad-syntax|no-permission)/pyproject.toml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/abravalheri/validate-pyproject
rev: 17e12779811926f000bdfa1795f9e3735dd71ac3 # frozen: 0.26
hooks:
- id: validate-pyproject
- repo: https://github.com/adamchainz/blacken-docs
rev: dda8db18cfc68df532abf33b185ecd12d5b7b326 # frozen: 1.20.0
hooks:
- id: blacken-docs
additional_dependencies: [black==25.*]
- repo: https://github.com/google/yamlfmt
rev: "v0.21.0"
hooks:
- id: yamlfmt
- repo: local
hooks:
- id: mdformat
name: mdformat
entry: mdformat --wrap 120
language: python
types: [markdown]
additional_dependencies:
- mdformat-gfm>=1
- mdformat-ruff>=0.1.3
- repo: https://github.com/LilSpazJoekp/docstrfmt
rev: c1813841673cdcd6cf602dde1edb78a5d5e45235 # frozen: v2.2.1
hooks:
- id: docstrfmt
args: ["-l", "120"]
additional_dependencies: ["sphinx>=9.1"]
# title must outrank the included CHANGELOG.rst headings
exclude: ^docs/changelog\.rst$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 321478e58f4938179c6b86e4ddfa923d1547a49b # frozen: v0.16.6
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: https://github.com/henryiii/flake8-lazy
rev: 3b5e52593dfaec56e6e4a48f237bafcf3d0b83ea # frozen: v0.9.0
hooks:
- id: flake8-lazy
files: ^src/
args: [--apply=set]
- repo: https://github.com/codespell-project/codespell
rev: "57b21406f092110c18776e39b0bda50d37c945c8" # frozen: v2.4.3
hooks:
- id: codespell
args: ["-L", "sur"]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: "3a6eb0fadf60b3cccfd80bad9dbb6fae7e47b316" # frozen: v1.10.0
hooks:
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: cef8b8350da46d8114c7e6b7272aebdccdf193ce # frozen: v1.30.0
hooks:
- id: zizmor
files: "^\\.github"
args: [--persona=pedantic]
- repo: local
hooks:
- id: changelog-filenames
name: Enforce towncrier fragment filenames
files: ^docs/changelog/(?!([0-9]+\.(feature|bugfix|doc|removal|deprecation|misc)\.rst|template\.jinja2|README\.rst)$).*
entry: files in changelog must be valid (N.type.rst)
language: fail
- repo: https://github.com/henryiii/check-sdist
rev: 5230295f53448dcfc8cc4a9eb00cc776ca92f964 # frozen: v1.6.0
hooks:
- id: check-sdist
args: [--inject-junk]
additional_dependencies: [flit-core]