Skip to content
This repository was archived by the owner on Aug 13, 2019. It is now read-only.

Commit dfe2294

Browse files
committed
Added .coveragerc
1 parent e13220a commit dfe2294

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.coveragerc

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# .coveragerc to control coverage.py
2+
[run]
3+
branch = True
4+
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)