Debian Codegraph @

testing/web-platform/tests/tools/mypy.ini

raw
1 [mypy]
2 # Here some paths are excluded from even being parsed, working around cases of
3 # invalid syntax we can't fix (yet) or where the code isn't in a package and
4 # there's no good place to add __init__.py files. The following are excluded:
5 # - tools/third_party/ (vendored dependencies)
6 # - All setup.py files (avoiding duplicate module named "setup")
7 # - tools/wptserve/docs/conf.py (generated code)
8 # - tools/wptserve/tests/ (deliberately invalid syntax)
9 exclude = (^tools/third_party/|/setup\.py$|^tools/wptserve/docs/conf.py|^tools/wptserve/tests/|^tools/third_party_modified/mozlog/|^tools/wptserve/wptserve/cgi/test_cgi\.py$)
10 mypy_path = tools/wptrunner:tools/wptserve:tools/webdriver:tools/webtransport:tools/third_party/h2/src:tools/third_party/hpack/src:tools/third_party/hyperframe/src:tools/third_party/pywebsocket3:tools/third_party/websockets/src
11 #check_untyped_defs = True
12 disallow_any_generics = True
13 disallow_incomplete_defs = True
14 disallow_subclassing_any = True
15 disallow_untyped_calls = True
16 disallow_untyped_decorators = True
17 disallow_untyped_defs = True
18 no_implicit_optional = True
19 strict_equality = True
20 warn_redundant_casts = True
21 warn_return_any = True
22 warn_unused_configs = True
23 warn_unused_ignores = True
24 warn_unreachable = True
25
26 show_error_codes = True
27
28 # Don't type check third_party things
29 [mypy-h2.*]
30 follow_imports = silent
31
32 [mypy-hpack.*]
33 follow_imports = silent
34
35 [mypy-hyperframe.*]
36 follow_imports = silent
37
38 [mypy-pywebsocket3.*]
39 follow_imports = silent
40
41 [mypy-websockets.*]
42 follow_imports = silent
43
44 # Ignore missing or untyped libraries.
45 [mypy-Cocoa.*]
46 ignore_missing_imports = True
47
48 [mypy-ColorSync.*]
49 ignore_missing_imports = True
50
51 [mypy-Quartz.*]
52 ignore_missing_imports = True
53
54 [mypy-marionette_driver.*]
55 ignore_missing_imports = True
56
57 [mypy-mozcrash.*]
58 ignore_missing_imports = True
59
60 [mypy-mozdebug.*]
61 ignore_missing_imports = True
62
63 [mypy-mozdevice.*]
64 ignore_missing_imports = True
65
66 [mypy-mozinfo.*]
67 ignore_missing_imports = True
68
69 [mypy-mozinstall.*]
70 ignore_missing_imports = True
71
72 [mypy-mozleak.*]
73 ignore_missing_imports = True
74
75 [mypy-mozlog.*]
76 ignore_missing_imports = True
77
78 [mypy-mozprocess.*]
79 ignore_missing_imports = True
80
81 [mypy-mozprofile.*]
82 ignore_missing_imports = True
83
84 [mypy-mozrunner.*]
85 ignore_missing_imports = True
86
87 [mypy-mozversion.*]
88 ignore_missing_imports = True
89
90 [mypy-taskcluster.*]
91 ignore_missing_imports = True
92
93 [mypy-ua_parser.*]
94 ignore_missing_imports = True