-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.cfg
91 lines (79 loc) · 1.8 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
82
83
84
85
86
87
88
89
90
91
[bdist_wheel]
universal = true
[sdist]
formats = zip, gztar
[pylint]
python_version = 3.9
[pyright]
reportImplicitStringConcatenation = true
reportMissingParameterType = true
reportUnnecessaryTypeIgnoreComment = true
reportUnknownParameterType = true
[green]
file-pattern = test_*.py
verbose = 2
no-skip-report = true
quiet-stdout = true
run-coverage = true
[pydocstyle]
convention = google
match-dir = (?!tests)(?!resources)(?!docs)[^\.].*
match = (?!test)(?!setup)[^\._].*\.py
inherit = false
add-ignore = D105
[black]
line-length = 88
[isort]
profile = black
[flake8]
max-line-length = 88
doctests = True
ignore = E203, W503, E704
exclude = .git, .eggs, __pycache__, tests/, docs/, build/, dist/
[mypy]
exclude = (?x)(
^.*test_.*\.py$ |
/setup\.py$
)
# mypy-strict configs
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = false
disallow_untyped_decorators = true
disallow_untyped_defs = true
extra_checks = true
ignore_missing_imports = true
implicit_reexport = false
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
[coverage:run]
branch = False
parallel = true
[coverage:report]
; Regexes for lines to exclude from consideration
exclude_also =
; Don't complain about missing debug-only code:
def __repr__
if self\.debug
; Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
; Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
@(abc\.)?abstractmethod
@overload
if TYPE_CHECKING:
ignore_errors = True
omit =
*/test/*
*/.experiments/*
*/examples/*
setup.py
*/_version.py
*/survey.py