Skip to content

Commit 518331a

Browse files
committed
chore: remove bigquery and spanner from centralization PR
1 parent 9214a56 commit 518331a

4 files changed

Lines changed: 19 additions & 30 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[mypy]
2+
python_version = 3.14
3+
namespace_packages = True

packages/google-cloud-bigquery/noxfile.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,6 @@
4141
ALL_PYTHON = ["3.10", "3.11", "3.12", "3.13", "3.14"]
4242
UNIT_TEST_PYTHON_VERSIONS = ALL_PYTHON
4343
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
44-
# Path to the centralized mypy configuration file at the repository root.
45-
# Search upwards to support running nox from both monorepo packages and integration test goldens.
46-
MYPY_CONFIG_FILE = next(
47-
(
48-
str(p / "mypy.ini")
49-
for p in CURRENT_DIRECTORY.parents
50-
if (p / "mypy.ini").exists()
51-
),
52-
str(CURRENT_DIRECTORY.parent.parent / "mypy.ini"),
53-
)
54-
5544

5645
SYSTEM_TEST_PYTHON_VERSIONS = UNIT_TEST_PYTHON_VERSIONS
5746

@@ -226,13 +215,7 @@ def mypy(session):
226215
)
227216
session.run("python", "-m", "pip", "freeze")
228217
with log_package_context(session):
229-
session.run(
230-
"mypy",
231-
f"--config-file={MYPY_CONFIG_FILE}",
232-
"-p",
233-
"google",
234-
"--show-traceback",
235-
)
218+
session.run("mypy", "-p", "google", "--show-traceback")
236219

237220

238221
@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[mypy]
2+
python_version = 3.14
3+
namespace_packages = True
4+
ignore_missing_imports = False
5+
6+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2563):
7+
# Dependencies that historically lacks py.typed markers
8+
[mypy-google.iam.*]
9+
ignore_missing_imports = True
10+
11+
# Helps mypy navigate the 'google' namespace more reliably in 3.10+
12+
explicit_package_bases = True
13+
14+
# Performance: reuse results from previous runs to speed up 'nox'
15+
incremental = True

packages/google-cloud-spanner/noxfile.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,6 @@
6969
SYSTEM_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
7070

7171
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
72-
# Path to the centralized mypy configuration file at the repository root.
73-
# Search upwards to support running nox from both monorepo packages and integration test goldens.
74-
MYPY_CONFIG_FILE = next(
75-
(
76-
str(p / "mypy.ini")
77-
for p in CURRENT_DIRECTORY.parents
78-
if (p / "mypy.ini").exists()
79-
),
80-
str(CURRENT_DIRECTORY.parent.parent / "mypy.ini"),
81-
)
82-
8372

8473
nox.options.sessions = [
8574
"unit-3.10",
@@ -778,7 +767,6 @@ def mypy(session):
778767
session.install(".")
779768
session.run(
780769
"mypy",
781-
f"--config-file={MYPY_CONFIG_FILE}",
782770
"-p",
783771
"google",
784772
# "--check-untyped-defs",

0 commit comments

Comments
 (0)