Skip to content

Commit 5e51fd4

Browse files
committed
chore: revert changes for overreaching generated packages
1 parent fb51490 commit 5e51fd4

14 files changed

Lines changed: 105 additions & 76 deletions

File tree

packages/google-backstory/mypy.ini

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-backstory/noxfile.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@
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")
51-
5249

5350
if (CURRENT_DIRECTORY / "testing").exists():
5451
LOWER_BOUND_CONSTRAINTS_FILE = (
@@ -110,7 +107,6 @@ def mypy(session):
110107
session.install(".")
111108
session.run(
112109
"mypy",
113-
f"--config-file={MYPY_CONFIG_FILE}",
114110
"-p",
115111
"google",
116112
"--check-untyped-defs",
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-appengine-logging/noxfile.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,6 @@
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-
# Search upwards to support running nox from both monorepo packages and integration test goldens.
51-
MYPY_CONFIG_FILE = next(
52-
(
53-
str(p / "mypy.ini")
54-
for p in CURRENT_DIRECTORY.parents
55-
if (p / "mypy.ini").exists()
56-
),
57-
str(CURRENT_DIRECTORY.parent.parent / "mypy.ini"),
58-
)
59-
6049

6150
if (CURRENT_DIRECTORY / "testing").exists():
6251
LOWER_BOUND_CONSTRAINTS_FILE = (
@@ -118,7 +107,6 @@ def mypy(session):
118107
session.install(".")
119108
session.run(
120109
"mypy",
121-
f"--config-file={MYPY_CONFIG_FILE}",
122110
"-p",
123111
"google",
124112
"--check-untyped-defs",
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-bigquery-logging/noxfile.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,6 @@
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-
# Search upwards to support running nox from both monorepo packages and integration test goldens.
51-
MYPY_CONFIG_FILE = next(
52-
(
53-
str(p / "mypy.ini")
54-
for p in CURRENT_DIRECTORY.parents
55-
if (p / "mypy.ini").exists()
56-
),
57-
str(CURRENT_DIRECTORY.parent.parent / "mypy.ini"),
58-
)
59-
6049

6150
if (CURRENT_DIRECTORY / "testing").exists():
6251
LOWER_BOUND_CONSTRAINTS_FILE = (
@@ -118,7 +107,6 @@ def mypy(session):
118107
session.install(".")
119108
session.run(
120109
"mypy",
121-
f"--config-file={MYPY_CONFIG_FILE}",
122110
"-p",
123111
"google",
124112
"--check-untyped-defs",
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-common/noxfile.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,6 @@
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-
# Search upwards to support running nox from both monorepo packages and integration test goldens.
51-
MYPY_CONFIG_FILE = next(
52-
(
53-
str(p / "mypy.ini")
54-
for p in CURRENT_DIRECTORY.parents
55-
if (p / "mypy.ini").exists()
56-
),
57-
str(CURRENT_DIRECTORY.parent.parent / "mypy.ini"),
58-
)
59-
6049

6150
if (CURRENT_DIRECTORY / "testing").exists():
6251
LOWER_BOUND_CONSTRAINTS_FILE = (
@@ -118,7 +107,6 @@ def mypy(session):
118107
session.install(".")
119108
session.run(
120109
"mypy",
121-
f"--config-file={MYPY_CONFIG_FILE}",
122110
"-p",
123111
"google",
124112
"--check-untyped-defs",
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-iam-logging/noxfile.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,6 @@
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-
# Search upwards to support running nox from both monorepo packages and integration test goldens.
51-
MYPY_CONFIG_FILE = next(
52-
(
53-
str(p / "mypy.ini")
54-
for p in CURRENT_DIRECTORY.parents
55-
if (p / "mypy.ini").exists()
56-
),
57-
str(CURRENT_DIRECTORY.parent.parent / "mypy.ini"),
58-
)
59-
6049

6150
if (CURRENT_DIRECTORY / "testing").exists():
6251
LOWER_BOUND_CONSTRAINTS_FILE = (
@@ -118,7 +107,6 @@ def mypy(session):
118107
session.install(".")
119108
session.run(
120109
"mypy",
121-
f"--config-file={MYPY_CONFIG_FILE}",
122110
"-p",
123111
"google",
124112
"--check-untyped-defs",

0 commit comments

Comments
 (0)