-
Notifications
You must be signed in to change notification settings - Fork 173
/
.pre-commit-config.yaml
54 lines (54 loc) · 1.39 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
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- id: debug-statements
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.0
hooks:
- id: ruff-format
- id: ruff
args:
- --fix
exclude: |
(?x)^(
|tests/.*
)$
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
args:
- --ignore-words-list=nin,astroid
- --skip=poetry.lock
- repo: https://github.com/regebro/pyroma
rev: "4.2"
hooks:
- id: pyroma
# Must be specified because of the default value in pyroma
always_run: false
additional_dependencies:
- poetry
files: |
(?x)^(
README.rst|
pyproject.toml|
)$
- repo: https://github.com/PyCQA/prospector
rev: v1.10.3
hooks:
- id: prospector
additional_dependencies:
- "prospector[with_everything]"
# the following are needed to run mypy successfully in the pre-commit virtualenv
- types-setuptools
- types-PyYAML
args:
- --summary-only
- --zero-exit