Skip to content

Commit 39ddbf6

Browse files
committed
Coverage: improve exclusions
1 parent b5455a5 commit 39ddbf6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.coveragerc

+10
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,20 @@ timid = False
4242
exclude_lines =
4343
pragma: no cover
4444
def __repr__
45+
# Don't complain if tests don't hit defensive assertion code:
4546
raise NotImplementedError
47+
return NotImplemented
48+
4649
if __name__ == .__main__.:
4750
def parse_args
4851
def main
52+
53+
# Ignore type checking code:
54+
if (typing\.)?TYPE_CHECKING:
55+
@overload( |$)
56+
57+
# Don't complain about ellipsis (exception classes, typing overloads etc):
58+
\.\.\.
4959
fail_under=0
5060
ignore_errors = False
5161
omit =

0 commit comments

Comments
 (0)