Skip to content

Commit

Permalink
Coverage: improve exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Oct 19, 2023
1 parent 438cd7e commit 5c9ef36
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,26 @@ source=
[report]
exclude_lines =
pragma: no cover

def __repr__
raise NotImplementedError
@(abc\.)?abstractmethod

# Ignore code that can only run in CLI:
if __name__ == .__main__.:

# Don't complain if tests don't hit defensive assertion code:
raise NotImplementedError
return NotImplemented

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

# Don't complain about ellipsis (exception classes, typing overloads etc):
\.\.\.

def parse_args

omit=
metomi/isodatetime/tests
precision=2

0 comments on commit 5c9ef36

Please sign in to comment.