Skip to content

Commit 6244206

Browse files
committed
chore(generator): clean up centralized mypy.ini structure and overrides
1 parent 971e416 commit 6244206

1 file changed

Lines changed: 55 additions & 38 deletions

File tree

mypy.ini

Lines changed: 55 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,77 +9,94 @@ explicit_package_bases = True
99
incremental = True
1010

1111
exclude = (?x)(
12-
^third_party/
13-
| tests/unit/resources/
14-
| tests/unit/gapic/
12+
(^|/)third_party/
13+
| (^|/)tests/unit/resources/
14+
| (^|/)tests/unit/gapic/
1515
)
1616

17-
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2563):
18-
# Dependencies that historically lacks py.typed markers
19-
[mypy-google.iam.*]
20-
ignore_missing_imports = True
21-
22-
[mypy-google.type.*]
23-
ignore_missing_imports = True
24-
2517

2618
# ==============================================================================
27-
# PACKAGE-SPECIFIC OVERRIDES
19+
# GLOBAL THIRD-PARTY & SHARED LIBRARY IGNORES
2820
# ==============================================================================
2921

30-
# --- google-cloud-core ---
31-
[mypy-google.protobuf.*]
22+
[mypy-anywidget]
3223
ignore_missing_imports = True
3324

34-
# --- bigframes ---
3525
[mypy-cloudpickle.*]
3626
ignore_missing_imports = True
27+
3728
[mypy-flask]
3829
ignore_missing_imports = True
39-
[mypy-pydata_google_auth]
40-
ignore_missing_imports = True
41-
[mypy-google.colab]
30+
31+
[mypy-google.auth.*]
4232
ignore_missing_imports = True
43-
[mypy-pytz]
33+
34+
[mypy-google.cloud.bigtable]
4435
ignore_missing_imports = True
45-
[mypy-pyarrow.*]
36+
37+
[mypy-google.cloud.pubsub]
4638
ignore_missing_imports = True
47-
[mypy-ibis.*]
39+
40+
[mypy-google.colab]
4841
ignore_missing_imports = True
49-
[mypy-ipywidgets]
42+
43+
[mypy-google.iam.*]
5044
ignore_missing_imports = True
51-
[mypy-google.cloud.pubsub]
45+
46+
[mypy-google.longrunning.*]
5247
ignore_missing_imports = True
53-
[mypy-google.cloud.bigtable]
48+
49+
[mypy-google.oauth2.*]
5450
ignore_missing_imports = True
55-
[mypy-anywidget]
51+
52+
[mypy-google.protobuf.*]
5653
ignore_missing_imports = True
5754

58-
# --- google-cloud-bigtable ---
59-
[mypy-google.cloud.bigtable.*]
60-
check_untyped_defs = True
61-
warn_unreachable = True
62-
disallow_any_generics = True
63-
ignore_errors = True
55+
[mypy-google.rpc.*]
56+
ignore_missing_imports = True
6457

65-
[mypy-google.cloud.bigtable.data.*]
66-
ignore_errors = False
58+
[mypy-google.type.*]
59+
ignore_missing_imports = True
6760

6861
[mypy-grpc.*]
6962
ignore_missing_imports = True
70-
[mypy-google.auth.*]
63+
64+
[mypy-ibis.*]
7165
ignore_missing_imports = True
72-
[mypy-google.longrunning.*]
66+
67+
[mypy-ipywidgets]
7368
ignore_missing_imports = True
74-
[mypy-google.oauth2.*]
69+
70+
[mypy-proto.*]
7571
ignore_missing_imports = True
76-
[mypy-google.rpc.*]
72+
73+
[mypy-pyarrow.*]
7774
ignore_missing_imports = True
78-
[mypy-proto.*]
75+
76+
[mypy-pydata_google_auth]
7977
ignore_missing_imports = True
78+
8079
[mypy-pytest]
8180
ignore_missing_imports = True
8281

82+
[mypy-pytz]
83+
ignore_missing_imports = True
84+
85+
86+
# ==============================================================================
87+
# PACKAGE-SPECIFIC OVERRIDES & EXCEPTIONS
88+
# ==============================================================================
89+
90+
# --- google-cloud-bigtable ---
91+
[mypy-google.cloud.bigtable.*]
92+
ignore_errors = True
93+
94+
[mypy-google.cloud.bigtable.data.*]
95+
check_untyped_defs = True
96+
warn_unreachable = True
97+
disallow_any_generics = True
98+
ignore_errors = False
99+
83100
# --- google-cloud-datastore ---
84101
[mypy-google.cloud.datastore._app_engine_key_pb2]
85102
ignore_errors = True

0 commit comments

Comments
 (0)