-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
87 lines (78 loc) · 2.19 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
77
78
79
80
81
82
83
84
85
86
87
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
files: "\\.(py|txt|yaml|json|md|toml|lock|cfg|html|sh|js|yml)$"
- id: trailing-whitespace
files: "\\.(py|txt|yaml|json|md|toml|lock|cfg|html|sh|js|yml)$"
- id: check-case-conflict
- id: check-docstring-first
- id: check-byte-order-marker
- id: check-added-large-files
- repo: https://github.com/myint/docformatter
rev: v1.4
hooks:
- id: docformatter
args: [--in-place]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.1
hooks:
- id: prettier
args: [--prose-wrap=always, --print-width=88]
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.1
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/hadialqattan/pycln
rev: v1.2.5
hooks:
- id: pycln
args: [--all]
- repo: https://github.com/pycqa/isort
rev: 5.11.5
hooks:
- id: isort
files: "\\.(py)$"
args:
[
--line-length=88,
--multi-line=3,
--force-grid-wrap=0,
--trailing-comma,
--ensure-newline-before-comments,
--use-parentheses,
]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
args: [--line-length=88]
- repo: https://github.com/pycqa/flake8
rev: "3.9.2"
hooks:
- id: flake8
additional_dependencies: [pep8-naming]
args: [--max-line-length=88] # like black.
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.782 # Do not update.
hooks:
- id: mypy
args: [--python-version=3.8, --ignore-missing-imports]
- repo: https://github.com/pre-commit/mirrors-pylint
rev: v3.0.0a4
hooks:
- id: pylint
args:
[
--fail-under=10.0,
--disable=no-self-use,
--disable=import-error,
--disable=line-too-long,
--disable=no-self-argument,
--disable=too-few-public-methods,
]