-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy path.pre-commit-config.yaml
46 lines (46 loc) · 1.22 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
repos:
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
name: "Format code (black)"
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
args:
[
"--max-line-length=88",
"--extend-ignore=E203",
"--kwargs-max-positional-arguments=6",
]
additional_dependencies:
[
"flake8-bugbear==23.2.13",
"flake8-builtins==2.1.0",
"flake8-comprehensions==3.10.1",
"flake8-class-attributes-order==0.1.3",
"pep8-naming==0.13.3",
"flake8-force-keyword-arguments==1.0.4",
]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
hooks:
- id: mypy
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py38-plus]