Skip to content

Commit 60303af

Browse files
committed
Add coveragerc files to ignore some code blocks
1 parent 58498bc commit 60303af

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.coveragerc

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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 0:
6+
if __name__ == .__main__.:
7+
8+
# pragma: no cover
9+
# pragma: no branch
10+
11+
.*# htest #
12+
if not (_htest or _utest):
13+
if not .*_utest:
14+
if .*_htest:

0 commit comments

Comments
 (0)