Skip to content

Commit

Permalink
add .coveragerc
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
Reed O'Brien committed Jul 20, 2012
1 parent c78aa18 commit 7425e3a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .coveragerc
@@ -0,0 +1,30 @@
# .coveragerc to control coverage.py
[run]
branch = True

[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover

# don't complain about imports
# from .* import .*
# import .*

# Don't complain about missing debug-only code:
def __repr__
if self\.debug

# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError

# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:

ignore_errors = True

[html]
directory = coverage_html_report

0 comments on commit 7425e3a

Please sign in to comment.