-
Notifications
You must be signed in to change notification settings - Fork 175
/
Copy pathsetup.cfg
122 lines (92 loc) · 2.4 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[tool:pytest]
python_files = *_tests.py
addopts = -Wignore --cov=baseplate --cov-report term --cov-report html:build/coverage --no-cov-on-fail
[testenv]
deps = -rrequirements-test.txt
commands = pytest --cov-append {posargs}
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[coverage:run]
branch = 1
omit = */baseplate/thrift/*.py
[coverage:report]
exclude_lines =
# re-enable the built-in pragma
pragma: nocover
# trivially empty implementations shouldn't matter
raise NotImplementedError
pass
# module-import stuff should be minimal
if __name__ == .__main__.:
# mypy-only branches aren't live code
if TYPE_CHECKING:
[mypy]
python_version = 3.9
# https://opentelemetry.io/docs/instrumentation/python/mypy/
namespace_packages = True
warn_unused_configs = True
disallow_any_generics = False
disallow_subclassing_any = False
disallow_untyped_calls = False
disallow_untyped_defs = True
disallow_incomplete_defs = True
check_untyped_defs = True
disallow_untyped_decorators = True
warn_redundant_casts = True
warn_unused_ignores = True
warn_return_any = False
no_implicit_reexport = True
strict_equality = True
html_report = build/mypy
[mypy-baseplate.thrift.*]
ignore_errors = True
[mypy-advocate.*]
ignore_missing_imports = True
[mypy-astroid.*]
ignore_missing_imports = True
[mypy-cassandra.*]
ignore_missing_imports = True
[mypy-confluent_kafka.*]
ignore_missing_imports = True
[mypy-cqlmapper.*]
ignore_missing_imports = True
[mypy-form_observability.*]
ignore_missing_imports = True
[mypy-gevent.*]
ignore_missing_imports = True
[mypy-IPython.*]
ignore_missing_imports = True
[mypy-kazoo.*]
ignore_missing_imports = True
[mypy-kombu.*]
ignore_missing_imports = True
[mypy-objgraph.*]
ignore_missing_imports = True
[mypy-posix_ipc.*]
ignore_missing_imports = True
[mypy-prometheus_client.*]
ignore_missing_imports = True
[mypy-pylint.*]
ignore_missing_imports = True
[mypy-pymemcache.*]
ignore_missing_imports = True
[mypy-pyramid.*]
ignore_missing_imports = True
[mypy-pythonjsonlogger.*]
ignore_missing_imports = True
[mypy-rediscluster.*]
ignore_missing_imports = True
[mypy-sqlalchemy.*]
ignore_missing_imports = True
[mypy-thrift.*]
ignore_missing_imports = True
[mypy-traitlets.*]
ignore_missing_imports = True
[mypy-urllib3.*]
ignore_missing_imports = True
[mypy-webob.*]
ignore_missing_imports = True
[mypy-zope.interface.*]
ignore_missing_imports = True