-
Notifications
You must be signed in to change notification settings - Fork 175
/
mypy.ini
75 lines (61 loc) · 1.91 KB
/
mypy.ini
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
[mypy]
plugins = pydantic.mypy, decoy.mypy, sqlalchemy.ext.mypy.plugin
show_error_codes = True
strict = True
# `(?x)` for a verbose regex (so it ignores whitespace and can have comments).
exclude = (?x)(
tests/(
# TODO(mc, 2021-09-12): remove these exclusions
robot
| service/labware
| service/legacy
| service/pipette_offset
| service/session
| service/tip_length
)
# Ignore Python Protocol API files that are used as opaque test input.
| tests/integration/persistence_snapshots
| tests/integration/protocols
)
[pydantic-mypy]
init_forbid_extra = True
init_typed = True
warn_required_dynamic_aliases = True
warn_untyped_fields = True
# TODO(mc, 2021-09-08): fix and remove any / all of the
# overrides below whenever able
[mypy-robot_server.service.labware.*]
disallow_untyped_defs = False
disallow_incomplete_defs = False
[mypy-robot_server.service.legacy.*]
disallow_untyped_defs = False
disallow_untyped_calls = False
disallow_incomplete_defs = False
[mypy-robot_server.service.notifications.*]
disallow_untyped_defs = False
disallow_incomplete_defs = False
[mypy-robot_server.service.pipette_offset.*]
disallow_untyped_defs = False
disallow_incomplete_defs = False
[mypy-robot_server.service.session.*]
disallow_untyped_defs = False
disallow_untyped_calls = False
disallow_incomplete_defs = False
no_implicit_reexport = False
[mypy-robot_server.service.tip_length.*]
disallow_untyped_defs = False
disallow_incomplete_defs = False
[mypy-robot_server.service.errors]
disallow_untyped_defs = False
disallow_incomplete_defs = False
[mypy-robot_server.robot.calibration.*]
disallow_untyped_defs = False
disallow_untyped_calls = False
disallow_incomplete_defs = False
warn_return_any = False
[mypy-tests.service.json_api.*]
disallow_any_generics = False
disallow_untyped_defs = False
disallow_incomplete_defs = False
[mypy-tests.service.test_logging]
disallow_untyped_defs = False