-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
74 lines (66 loc) · 1.78 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/asottile/reorder_python_imports
rev: v3.9.0
hooks:
- id: reorder-python-imports
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
args:
- --line-length=119
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.262
hooks:
- id: ruff
args:
- --line-length=119
additional_dependencies:
- flake8-bugbear==21.11.29
- flake8-builtins==1.5.3
- pep8-naming==0.12.1
- flake8-variables-names==0.0.4
- flake8-commas==2.1.0
- flake8-mock==0.3
- flake8-printf-formatting==1.1.2
- flake8-use-fstring==1.3
- flake8-pytest-style==1.5.1
- flake8-simplify==0.14.2
- flake8-walrus==1.1.0
- flake8-annotations==2.7.0
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-docstring-first
- id: check-json
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: name-tests-test
- id: requirements-txt-fixer
- id: end-of-file-fixer
exclude: ^data/
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md
- repo: https://github.com/jendrikseipp/vulture
rev: v2.7
hooks:
- id: vulture
args:
- ./
- --exclude=envpy39/
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.961
# hooks:
# - id: mypy
- repo: https://github.com/ComPWA/mirrors-pyright
rev: v1.1.304
hooks:
- id: pyright