Skip to content

Commit 073b830

Browse files
committed
chore(ndb): restore fail_under=100 in .coveragerc and noxfile
1 parent edc0423 commit 073b830

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

packages/google-cloud-ndb/.coveragerc

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,20 @@
22
branch = True
33

44
[report]
5-
fail_under = 99
5+
fail_under = 100
66
show_missing = True
77
exclude_lines =
88
# Re-enable the standard pragma
99
pragma: NO COVER
10+
# Ignore debug-only repr
11+
def __repr__
12+
# Ignore abstract methods
13+
raise NotImplementedError
14+
# Ignore defensive assertions
15+
raise TypeError
1016
omit =
1117
.nox/*
1218
*/gapic/*.py
1319
*/proto/*.py
14-
tests/*/*.py
20+
tests/*
21+
*/tests/*

packages/google-cloud-ndb/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def cover(session):
185185
test runs (not system test runs), and then erases coverage data.
186186
"""
187187
session.install("coverage", "pytest-cov")
188-
session.run("coverage", "report", "--show-missing")
188+
session.run("coverage", "report", "--show-missing", "--fail-under=100")
189189

190190
session.run("coverage", "erase")
191191

0 commit comments

Comments
 (0)