Coverage: Use exclude_also instead of exclude_lines

This commit is contained in:
Hugo van Kemenade 2023-11-12 12:53:42 +02:00
parent 0c767f0d7c
commit 5938423c63

View File

@ -2,11 +2,8 @@
[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma:
pragma: no cover
# Don't complain if non-runnable code isn't run:
exclude_also =
# Don't complain if non-runnable code isn't run
if 0:
if __name__ == .__main__.:
# Don't complain about code that shouldn't run