Skip to content

Commit 8a618a5

Browse files
committed
feat(datastore): update noxfile.py to use dynamic MYPY_CONFIG_FILE
1 parent cd574c9 commit 8a618a5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/google-cloud-datastore/noxfile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
PREVIEW_PYTHON_VERSION = "3.14"
4747

4848
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
49+
# Path to the centralized mypy configuration file at the repository root.
50+
MYPY_CONFIG_FILE = str(CURRENT_DIRECTORY.parent.parent / "mypy.ini")
4951

5052
if (CURRENT_DIRECTORY / "testing").exists():
5153
LOWER_BOUND_CONSTRAINTS_FILE = (
@@ -107,7 +109,7 @@ def mypy(session):
107109
session.install(".")
108110
session.run(
109111
"mypy",
110-
"--config-file=../../mypy.ini",
112+
f"--config-file={MYPY_CONFIG_FILE}",
111113
"-p",
112114
"google",
113115
# TODO(https://github.com/googleapis/google-cloud-python/issues/16083)

0 commit comments

Comments
 (0)