-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
74 lines (74 loc) · 2.13 KB
/
.pre-commit-config.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
repos:
- repo: https://github.com/python-poetry/poetry
rev: 1.8.0
hooks:
- id: poetry-check
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
hooks:
- id: mypy
exclude: |
(?x)(cookiecutter\.package_name)
additional_dependencies: [pytest==7.1.2]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.3
hooks:
- id: ruff
args: ['--config', 'pyproject.toml']
stages: [pre-commit]
- id: ruff
stages: [manual]
args: ['--config', 'pyproject.toml', '--fix', '--exit-non-zero-on-fix']
- repo: https://github.com/python/black
rev: 24.10.0
hooks:
- id: black
args: ['--config', 'pyproject.toml']
exclude: |
(?x)(\{\{cookiecutter\.package_name\}\}\/[docs|tests])
- repo: https://github.com/asottile/blacken-docs
rev: 1.19.1
hooks:
- id: blacken-docs
additional_dependencies: [black==24.4.2]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-mock-methods
- id: rst-backticks
- repo: https://github.com/openstack/bashate
rev: 2.1.1
hooks:
- id: bashate
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.18.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
- repo: https://github.com/crate-ci/typos
rev: typos-dict-v0.11.34
hooks:
- id: typos
args: ["--config", "_typos.toml", "--force-exclude"]
- repo: https://github.com/fpgmaas/deptry.git
rev: "0.21.0"
hooks:
- id: deptry
args: ["--ignore", "DEP001,DEP002"]