-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathmypy.ini
More file actions
130 lines (93 loc) · 2.88 KB
/
Copy pathmypy.ini
File metadata and controls
130 lines (93 loc) · 2.88 KB
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
[mypy]
namespace_packages = True
ignore_missing_imports = False
# Helps mypy navigate the "google" namespace more reliably in 3.10+
explicit_package_bases = True
# Performance: reuse results from previous runs to speed up "nox"
incremental = True
exclude = (?x)(
(^|/)third_party/
| (^|/)tests/unit/resources/
| (^|/)tests/unit/gapic/
)
# ==============================================================================
# GLOBAL THIRD-PARTY & SHARED LIBRARY IGNORES
# ==============================================================================
[mypy-anywidget]
ignore_missing_imports = True
[mypy-cloudpickle.*]
ignore_missing_imports = True
[mypy-flask]
ignore_missing_imports = True
[mypy-google.api,google.api.*]
ignore_missing_imports = True
[mypy-google.colab]
ignore_missing_imports = True
[mypy-google.iam,google.iam.*]
ignore_missing_imports = True
[mypy-google.longrunning,google.longrunning.*]
ignore_missing_imports = True
[mypy-google.oauth2,google.oauth2.*]
ignore_missing_imports = True
[mypy-google.protobuf,google.protobuf.*]
ignore_missing_imports = True
[mypy-google.rpc,google.rpc.*]
ignore_missing_imports = True
[mypy-google.type,google.type.*]
ignore_missing_imports = True
[mypy-grpc,grpc.*]
ignore_missing_imports = True
[mypy-grpc_status]
ignore_missing_imports = True
[mypy-ibis.*]
ignore_missing_imports = True
[mypy-ipywidgets]
ignore_missing_imports = True
[mypy-proto,proto.*]
ignore_missing_imports = True
[mypy-pyarrow.*]
ignore_missing_imports = True
[mypy-pydata_google_auth]
ignore_missing_imports = True
[mypy-pytest]
ignore_missing_imports = True
[mypy-pytz]
ignore_missing_imports = True
# ==============================================================================
# PACKAGE-SPECIFIC OVERRIDES & EXCEPTIONS
# ==============================================================================
# --- bigframes ---
[mypy-bigframes_vendored.*]
ignore_errors = True
# --- google-auth ---
[mypy-google.auth.*]
ignore_missing_imports = True
# --- google-cloud-bigtable ---
[mypy-google.cloud.bigtable]
ignore_missing_imports = True
[mypy-google.cloud.bigtable.*]
# Broadly ignore errors for the older, legacy/handwritten parts of the library
ignore_errors = True
[mypy-google.cloud.bigtable.data.*]
# Stricter rules for the newer parts of the library
check_untyped_defs = True
warn_unreachable = True
disallow_any_generics = True
ignore_errors = False
[mypy-google.cloud.bigtable_admin.*]
ignore_errors = True
[mypy-google.cloud.bigtable_admin_v2.*]
ignore_errors = True
[mypy-google.cloud.bigtable_v2.*]
ignore_errors = True
# --- google-cloud-datastore ---
[mypy-google.cloud.datastore.*]
ignore_missing_imports = True
[mypy-google.cloud.datastore._app_engine_key_pb2]
ignore_errors = True
# --- google-cloud-firestore ---
[mypy-google.cloud.firestore.*]
check_untyped_defs = True
# --- google-cloud-pubsub ---
[mypy-google.cloud.pubsub]
ignore_missing_imports = True