Skip to content

Commit

Permalink
Coverage: improve exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Feb 11, 2022
1 parent 2b3e2c6 commit 00953c9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,20 @@ timid = False
exclude_lines =
pragma: no cover
def __repr__
# Don't complain if tests don't hit defensive assertion code:
raise NotImplementedError
return NotImplemented

if __name__ == .__main__.:
def parse_args
def main

# Ignore type checking code:
if (typing\.)?TYPE_CHECKING:
@overload( |$)

# Don't complain about ellipsis (exception classes, typing overloads etc):
\.\.\.
fail_under=0
ignore_errors = False
omit =
Expand Down

0 comments on commit 00953c9

Please sign in to comment.