Skip to content

Commit 3ac9c56

Browse files
committed
chore: restore sqlalchemy-bigquery changes
1 parent 5d8f1a4 commit 3ac9c56

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

packages/sqlalchemy-bigquery/.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ omit =
2222
sqlalchemy_bigquery/requirements.py
2323

2424
[report]
25-
fail_under = 100
25+
fail_under = 98
2626
show_missing = True
2727
exclude_lines =
2828
# Re-enable the standard pragma

packages/sqlalchemy-bigquery/noxfile.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,16 @@
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+
)
122132

123133

124134
def _calculate_duration(func):
@@ -467,7 +477,7 @@ def cover(session):
467477
test runs (not system test runs), and then erases coverage data.
468478
"""
469479
session.install("coverage", "pytest-cov")
470-
session.run("coverage", "report", "--show-missing", "--fail-under=100")
480+
session.run("coverage", "report", "--show-missing")
471481

472482
session.run("coverage", "erase")
473483

0 commit comments

Comments
 (0)