blob: 7c592a95bf04596bb668612f43c62f8aa4291214 [file] [log] [blame]
Anthony Sottileb80ca9e2014-04-13 22:09:14 -07001[run]
2branch = True
Anthony Sottileb80ca9e2014-04-13 22:09:14 -07003source =
4 .
5omit =
6 .tox/*
7 /usr/*
Anthony Sottileb80ca9e2014-04-13 22:09:14 -07008 setup.py
9
Anthony Sottile27291ff2014-03-13 08:41:35 -070010[report]
Anthony Sottile8ad9e7c2017-07-05 12:38:21 -070011show_missing = True
12skip_covered = True
Anthony Sottile27291ff2014-03-13 08:41:35 -070013exclude_lines =
Anthony Sottileb80ca9e2014-04-13 22:09:14 -070014 # Have to re-enable the standard pragma
15 \#\s*pragma: no cover
Anthony Sottile27291ff2014-03-13 08:41:35 -070016
Anthony Sottileb80ca9e2014-04-13 22:09:14 -070017 # Don't complain if tests don't hit defensive assertion code:
18 ^\s*raise AssertionError\b
19 ^\s*raise NotImplementedError\b
20 ^\s*return NotImplemented\b
21 ^\s*raise$
Anthony Sottile27291ff2014-03-13 08:41:35 -070022
Anthony Sottileb80ca9e2014-04-13 22:09:14 -070023 # Don't complain if non-runnable code isn't run:
24 ^if __name__ == ['"]__main__['"]:$
Anthony Sottile27291ff2014-03-13 08:41:35 -070025
Anthony Sottileb80ca9e2014-04-13 22:09:14 -070026[html]
27directory = coverage-html
Anthony Sottile27291ff2014-03-13 08:41:35 -070028
Anthony Sottileb80ca9e2014-04-13 22:09:14 -070029# vim:ft=dosini