Update project setup.

This commit is contained in:
Anthony Sottile 2014-04-13 22:09:14 -07:00
parent 13b4ca54cf
commit b80ca9e84a
23 changed files with 186 additions and 112 deletions

View file

@ -1,19 +1,29 @@
[run]
branch = True
timid = True
source =
.
omit =
.tox/*
/usr/*
*/tmp*
setup.py
[report]
exclude_lines =
# Don't complain about defensive assertions
raise NotImplementedError
raise AssertionError
# Have to re-enable the standard pragma
\#\s*pragma: no cover
# Don't complain about non-runnable code
if __name__ == .__main__.:
# Don't complain if tests don't hit defensive assertion code:
^\s*raise AssertionError\b
^\s*raise NotImplementedError\b
^\s*return NotImplemented\b
^\s*raise$
omit =
/usr/*
py_env/*
*/__init__.py
# Don't complain if non-runnable code isn't run:
^if __name__ == ['"]__main__['"]:$
# Ignore test coverage
tests/*
[html]
directory = coverage-html
# Don't complain about our pre-commit file
pre-commit.py
# vim:ft=dosini