-
Notifications
You must be signed in to change notification settings - Fork 31
/
.pre-commit-config.yaml
65 lines (58 loc) · 1.57 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
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/charliermarsh/ruff-pre-commit
rev: v0.0.260
hooks:
- id: ruff
args:
- --line-length=119
additional_dependencies:
- flake8-bugbear==22.7.1
- flake8-builtins==1.5.3
- pep8-naming==0.13.0
- flake8-variables-names==0.0.5
- flake8-commas==2.1.0
- flake8-mock==0.3
- flake8-printf-formatting==1.1.2
- flake8-use-fstring==1.3
- flake8-pytest-style==1.6.0
- flake8-simplify==0.18.0
- flake8-walrus==1.1.0
- flake8-annotations==2.9.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
args:
- --unsafe
- id: detect-private-key
- id: end-of-file-fixer
exclude: .svg
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.1.1
hooks:
- id: mypy
- repo: https://github.com/ComPWA/mirrors-pyright
rev: v1.1.301
hooks:
- id: pyright
- repo: https://github.com/hcodes/yaspeller.git
rev: v10.0.1
hooks:
- id: yaspeller