Skip to content

Commit 9e1d429

Browse files
author
Joel Collins
committed
Added coverage config
1 parent 4e90707 commit 9e1d429

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.coveragerc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[run]
2+
branch = True
3+
source = ./labthings
4+
omit = .venv/*
5+
6+
[report]
7+
# Regexes for lines to exclude from consideration
8+
exclude_lines =
9+
# Have to re-enable the standard pragma
10+
pragma: no cover
11+
12+
# Don't complain about missing debug-only code:
13+
def __repr__
14+
if self\.debug
15+
16+
# Don't complain if tests don't hit defensive assertion code:
17+
raise AssertionError
18+
raise NotImplementedError
19+
20+
# Don't complain if non-runnable code isn't run:
21+
if 0:
22+
if __name__ == .__main__.:
23+
24+
ignore_errors = True
25+
26+
[html]
27+
directory = coverage_html_report

0 commit comments

Comments
 (0)