-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmypy.ini
142 lines (135 loc) · 3.85 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# A mypy configuration file, as documented here:
# https://mypy.readthedocs.io/en/stable/config_file.html
#
# Note that the above documentation may refer to a newer version of mypy. The
# version of mypy we're using is specified in `mypy-version.txt` and in the
# `Dockerfile`.
[mypy]
# Tell us if we're misspelling one of the configuration keys below.
warn_unused_configs = True
# Use the current directory as the explicit base package; this avoids us having
# to have an __init__.py file in every directory.
explicit_package_bases = True
# The following is obsolete with mypy >0.971, but we're pinned to that version
# for now (see `mypy-version.txt`)
namespace_packages = True
# The following error types are stricter than the default, but provide useful
# coverage that's easy for us to adhere to.
check_untyped_defs = True
strict_equality = True
enable_error_code =
ignore-without-code,
possibly-undefined,
redundant-cast,
truthy-bool,
truthy-iterable,
unused-awaitable,
###### Module-specific configuration #######
# Note that the `mypy-integration` we use with Bazel doesn't obey mypy's
# `exclude` directive, so we have to use the `ignore_errors` directive on a
# per-module basis instead.
[mypy-*.six.*]
# The `six` module is (somehow) a transitive dependency of ours, and it contains
# typing errors we can't fix. Ignore this module entirely.
ignore_errors = True
# TODO: From unknown sources (not in our lockfiles).
[mypy-selenium.*]
ignore_missing_imports = True
[mypy-testing.web.*]
ignore_missing_imports = True
[mypy-validate]
ignore_missing_imports = True
# TODO: https://github.com/bazel-contrib/bazel-mypy-integration/issues/39
[mypy-aiofiles.*]
ignore_missing_imports = True
[mypy-aiohttp.*]
ignore_missing_imports = True
[mypy-auditwheel.*]
ignore_missing_imports = True
[mypy-colorama.*]
ignore_missing_imports = True
[mypy-cffi.*]
ignore_missing_imports = True
[mypy-envoy.*]
ignore_missing_imports = True
follow_imports = skip
[mypy-git.*]
ignore_missing_imports = True
[mypy-google]
ignore_missing_imports = True
[mypy-google.api.*]
ignore_missing_imports = True
[mypy-google.protobuf.*]
ignore_missing_imports = True
[mypy-google.rpc.*]
ignore_missing_imports = True
[mypy-grpc.*]
ignore_missing_imports = True
[mypy-grpc_health.*]
ignore_missing_imports = True
[mypy-grpc_interceptor.*]
ignore_missing_imports = True
[mypy-grpc_reflection.*]
ignore_missing_imports = True
[mypy-grpc_status.*]
ignore_missing_imports = True
[mypy-grpc_tools.*]
ignore_missing_imports = True
[mypy-humanize.*]
ignore_missing_imports = True
[mypy-jinja2.*]
ignore_missing_imports = True
[mypy-jwt.*]
ignore_missing_imports = True
[mypy-kubernetes.*]
ignore_missing_imports = True
[mypy-kubernetes_asyncio.*]
ignore_missing_imports = True
[mypy-mypy_protobuf.*]
ignore_missing_imports = True
[mypy-opencensus.*]
ignore_missing_imports = True
[mypy-overrides.*]
ignore_missing_imports = True
[mypy-packaging.*]
ignore_missing_imports = True
[mypy-pathspec.*]
ignore_missing_imports = True
[mypy-psutil.*]
ignore_missing_imports = True
[mypy-pulumi.*]
ignore_missing_imports = True
[mypy-pulumi_aws.*]
ignore_missing_imports = True
[mypy-pulumi_awsx.*]
ignore_missing_imports = True
[mypy-pulumi_command.*]
ignore_missing_imports = True
[mypy-pulumi_eks.*]
ignore_missing_imports = True
[mypy-pulumi_kubernetes.*]
ignore_missing_imports = True
[mypy-pulumi_random.*]
ignore_missing_imports = True
[mypy-pyarrow.*]
ignore_missing_imports = True
[mypy-pyprctl.*]
ignore_missing_imports = True
[mypy-requests.*]
ignore_missing_imports = True
[mypy-six.*]
ignore_missing_imports = True
[mypy-twine.*]
ignore_missing_imports = True
[mypy-udpa.annotations.*]
ignore_missing_imports = True
[mypy-urllib3.*]
ignore_missing_imports = True
[mypy-watchdog.*]
ignore_missing_imports = True
[mypy-websockets.*]
ignore_missing_imports = True
[mypy-yaml.*]
ignore_missing_imports = True
[mypy-xds.*]
ignore_missing_imports = True