code checking : added pep8 and coveralls

This commit is contained in:
alalazo
2016-01-19 18:29:39 +01:00
parent 01c5b53ba1
commit f3d62f1d3b
3 changed files with 44 additions and 4 deletions

27
.coveragerc Normal file
View File

@@ -0,0 +1,27 @@
# .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 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 False:
if __name__ == .__main__.:
ignore_errors = True
[html]
directory = htmlcov