-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config-ci.yaml
84 lines (74 loc) · 2.22 KB
/
.pre-commit-config-ci.yaml
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-toml
- id: check-yaml
files: \.yaml$
- id: trailing-whitespace
exclude: (migrations/|tests/|docs/).*
- id: end-of-file-fixer
exclude: (migrations/|tests/|docs/).*
- id: check-added-large-files
exclude: (migrations/|tests/|docs/).*
- id: check-case-conflict
exclude: (migrations/|tests/|docs/).*
- id: check-merge-conflict
exclude: (migrations/|tests/|docs/).*
- id: check-docstring-first
exclude: (migrations/|tests/|docs/).*
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.5.0
hooks:
- id: pyproject-fmt
- repo: https://github.com/tox-dev/tox-ini-fmt
rev: 1.4.1
hooks:
- id: tox-ini-fmt
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
hooks:
- id: pyupgrade
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
exclude: (migrations/|tests/|docs/).*
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
args: [ "--config=pyproject.toml" ]
exclude: (migrations/|tests/|docs/).*
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.30.0
hooks:
- id: commitizen
exclude: (migrations/|tests/|docs/).*
- repo: https://github.com/PyCQA/bandit
rev: 1.7.10
hooks:
- id: bandit
args: [ "-c", "pyproject.toml", "-r", "." ]
additional_dependencies: [ "bandit[toml]" ]
exclude: (migrations/|tests/|docs/).*
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
args: [ "--in-place", "--recursive", "--blank" ]
exclude: (migrations/|tests/|docs/).*
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.19.1
hooks:
- id: blacken-docs
additional_dependencies:
- black==24.4.2
files: '\.rst$'
- repo: https://github.com/rstcheck/rstcheck
rev: "v6.2.4"
hooks:
- id: rstcheck
args: [ "--report-level=warning" ]
files: ^(docs/(.*/)*.*\.rst)
additional_dependencies: [ Sphinx==6.2.1 ]