Skip to content

Commit

Permalink
Add exclude_lines to the coveraage report config
Browse files Browse the repository at this point in the history
  • Loading branch information
atugushev committed Feb 7, 2021
1 parent 4c1ff31 commit a619d0d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,20 @@ omit =

[report]
include = piptools/*, tests/*

# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma:
pragma: no cover

# Don't complain about missing debug-only code:
def __repr__

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

# Don't complain if non-runnable code isn't run:
if (0|False|TYPE_CHECKING):
if __name__ == .__main__.:

0 comments on commit a619d0d

Please sign in to comment.