-
Notifications
You must be signed in to change notification settings - Fork 13
/
.pre-commit-config.yaml
76 lines (68 loc) · 1.79 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
75
76
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first
- id: check-merge-conflict
- id: check-yaml
- id: check-toml
- id: check-json
- id: check-xml
- id: check-added-large-files
args: ["--maxkb=1024"]
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.2
hooks:
- id: prettier
- repo: https://github.com/asottile/pyupgrade
rev: v2.32.0
hooks:
- id: pyupgrade
args: ["--py38-plus"]
- repo: https://github.com/myint/docformatter
rev: v1.4
hooks:
- id: docformatter
args: ["-i", "--wrap-summaries", "0", "--blank"]
- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
- id: autoflake
args: ["--in-place", "--remove-all-unused-imports"]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
- id: isort
name: isort (cython)
types: [cython]
- id: isort
name: isort (pyi)
types: [pyi]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
args: ["--config", "pyproject.toml"]
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
additional_dependencies:
[
"flake8-broken-line==0.4.0",
"flake8-bugbear==22.4.25",
"flake8-builtins==1.5.3",
"flake8-comprehensions==3.8.0",
"flake8-polyfill==1.0.2",
"flake8-return==1.1.3",
"flake8-simplify==0.19.2",
]