Skip to content

Commit

Permalink
Use exclude_also instead of exclude_lines
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Nov 12, 2023
1 parent 1db8e5b commit 45ed392
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

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

exclude_also =
# Don't complain if non-runnable code isn't run
if 0:
if __name__ == .__main__.:
Expand Down

0 comments on commit 45ed392

Please sign in to comment.