Skip to content

Commit 8a4a32f

Browse files
adamantikesybrenstuvel
authored andcommitted
Exclude direct execution blocks from coverage
1 parent 6a50b3d commit 8a4a32f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.coveragerc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[report]
2+
# Regexes for lines to exclude from consideration
3+
exclude_lines =
4+
# Don't complain if non-runnable code isn't run
5+
if __name__ == .__main__.:

0 commit comments

Comments
 (0)