Skip to content

Instantly share code, notes, and snippets.

@chobeat
Created August 31, 2018 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chobeat/35037bbcdf634f20fbad10edf46a8d3b to your computer and use it in GitHub Desktop.
Save chobeat/35037bbcdf634f20fbad10edf46a8d3b to your computer and use it in GitHub Desktop.
[run]
branch = True
source = */my_module/*
# omit = bad_file.py
[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 __name__ == .__main__.:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment