-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
82 lines (78 loc) · 1.52 KB
/
setup.cfg
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
[coverage:run]
branch = True
omit = *test_*
[coverage:report]
exclude_lines =
pragma: no cover
show_missing = True
skip_empty = True
skip_covered = False
[flake8]
# generic
classmethod-decorators =
classmethod
validator
max-line-length = 119
# flake8-docstrings config
docstring-convention = google
# rules
select =
# pycodestyle
E112,E113,E71,E72,E74,E9,W6,
# pyflakes
F,
# flake8-bugbear
B,
# flake8-comprehensions
C4,
# flake8-docstrings
D1,
# flake8-requirements
I,
# pep8-naming
N807,
# flake8-eradicate
E800,
# flake8-simplify
SIM,
# flake8-return
R5
# flake8-fixme
T100,T101,T102
# flake8-print
T2,
# flake8-type-checking
TC00
ignore =
# pycodestyle (overlaps with B904)
E722,
# pyflakes (allow star imports)
F403,F405,
# flake8-bugbear (allow pydantic @validator)
B902,
# flake8-comprehensions (allow dict() calls)
C408,
# pydocstyle
# (allow public module without docstring)
D100,
# (allow public package without docstring)
D104,
# (allow __init__ without docstring)
D107,
# (allow first line of docstring to wrap)
D415,
# pep8-naming (overlaps with B902)
D404,D405,
# exclude
exclude =
__pycache__,
.git,
.mypy_cache,
.venv,
.vscode,
[isort]
profile=black
[tool:pytest]
addopts = --cov --cov-report html --cov-fail-under 90 --cov-report term-missing --exitfirst -rA tests
filterwarnings =
ignore::xmlschema.XMLSchemaImportWarning