Skip to content

Commit f0027cf

Browse files
committed
use new style
1 parent 92674bb commit f0027cf

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.coveragerc

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,20 @@ parallel = True
77

88
[report]
99
# Regexes for lines to exclude from consideration
10-
exclude_lines =
11-
# Have to re-enable the standard pragma
12-
pragma: no cover
13-
10+
exclude_also =
1411
# Don't complain about missing debug-only code:
1512
def __repr__
1613
if self\.debug
17-
1814
# Don't complain if tests don't hit defensive assertion code:
1915
raise AssertionError
2016
raise NotImplementedError
21-
2217
# Don't complain if non-runnable code isn't run:
2318
if 0:
2419
if __name__ == .__main__.:
2520
if __name__ == __main__.:
21+
class .*\bProtocol\):
2622
# Don't complain about abstract methods, they aren't run:
2723
@(abc\.)?abstract(((class|static)?method)|property)
28-
2924
# Don't complain about type checking
3025
if TYPE_CHECKING:
3126

0 commit comments

Comments
 (0)