Skip to content

Commit 243ffa8

Browse files
committed
chore: put bigquery back and remove sqlalchemy-bigquery from centralization PR
1 parent 518331a commit 243ffa8

3 files changed

Lines changed: 18 additions & 14 deletions

File tree

packages/google-cloud-bigquery/mypy.ini

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/google-cloud-bigquery/noxfile.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@
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+
4455

4556
SYSTEM_TEST_PYTHON_VERSIONS = UNIT_TEST_PYTHON_VERSIONS
4657

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

220237

221238
@nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS)

packages/sqlalchemy-bigquery/noxfile.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,6 @@
119119
}
120120

121121
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
122-
# Path to the centralized mypy configuration file at the repository root.
123-
# Search upwards to support running nox from both monorepo packages and integration test goldens.
124-
MYPY_CONFIG_FILE = next(
125-
(
126-
str(p / "mypy.ini")
127-
for p in CURRENT_DIRECTORY.parents
128-
if (p / "mypy.ini").exists()
129-
),
130-
str(CURRENT_DIRECTORY.parent.parent / "mypy.ini"),
131-
)
132122

133123

134124
def _calculate_duration(func):

0 commit comments

Comments
 (0)