summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/mypy.ini
blob: cc22a770b0428ea322416742074a32ae2f47bcf0 (plain)
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
123
124
[mypy]
# Here some paths are excluded from even being parsed, working around cases of
# invalid syntax we can't fix (yet) or where the code isn't in a package and
# there's no good place to add __init__.py files. The following are excluded:
# - tools/third_party/ (vendored dependencies)
# - All setup.py files (avoiding duplicate module named "setup")
# - tools/wptserve/docs/conf.py (generated code)
# - tools/wptserve/tests/ (deliberately invalid syntax)
exclude = (^tools/third_party/|/setup\.py$|^tools/wptserve/docs/conf.py|^tools/wptserve/tests/|^tools/third_party_modified/mozlog/)
mypy_path = tools/wptrunner:tools/wptserve:tools/webdriver:tools/webtransport
#check_untyped_defs = True
disallow_any_generics = True
disallow_incomplete_defs = True
disallow_subclassing_any = True
disallow_untyped_calls = True
disallow_untyped_decorators = True
disallow_untyped_defs = True
no_implicit_optional = True
strict_equality = True
warn_redundant_casts = True
warn_return_any = True
warn_unused_configs = True
warn_unused_ignores = True
warn_unreachable = True

show_error_codes = True

# Ignore missing or untyped libraries.

[mypy-Cocoa.*]
ignore_missing_imports = True

[mypy-ColorSync.*]
ignore_missing_imports = True

[mypy-Quartz.*]
ignore_missing_imports = True

[mypy-github.*]
ignore_missing_imports = True

[mypy-h2.*]
ignore_missing_imports = True

[mypy-hpack.*]
ignore_missing_imports = True

[mypy-html5lib.*]
ignore_missing_imports = True

[mypy-hyperframe.*]
ignore_missing_imports = True

[mypy-hypothesis.*]
ignore_missing_imports = True

[mypy-marionette_driver.*]
ignore_missing_imports = True

[mypy-mozcrash.*]
ignore_missing_imports = True

[mypy-mozdebug.*]
ignore_missing_imports = True

[mypy-mozdevice.*]
ignore_missing_imports = True

[mypy-mozinfo.*]
ignore_missing_imports = True

[mypy-mozinstall.*]
ignore_missing_imports = True

[mypy-mozleak.*]
ignore_missing_imports = True

[mypy-mozlog.*]
ignore_missing_imports = True

[mypy-moznetwork.*]
ignore_missing_imports = True

[mypy-mozprocess.*]
ignore_missing_imports = True

[mypy-mozprofile.*]
ignore_missing_imports = True

[mypy-mozrunner.*]
ignore_missing_imports = True

[mypy-mozversion.*]
ignore_missing_imports = True

[mypy-PIL.*]
ignore_missing_imports = True

[mypy-packaging.*]
ignore_missing_imports = True

[mypy-psutil.*]
ignore_missing_imports = True

[mypy-pytest.*]
ignore_missing_imports = True

[mypy-pywebsocket3.*]
ignore_missing_imports = True

[mypy-selenium.*]
ignore_missing_imports = True

[mypy-taskcluster.*]
ignore_missing_imports = True

[mypy-ua_parser.*]
ignore_missing_imports = True

[mypy-websockets.*]
ignore_missing_imports = True

[mypy-zstandard.*]
ignore_missing_imports = True