From 4c37dca011fa901aaece0d4b253813ad68d239c5 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 15 Aug 2019 23:59:09 +0200 Subject: [PATCH] .coveragerc: add report section This will allow for "raise NotImplementedError" to indicate code not to be covered in tests etc. --- .coveragerc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.coveragerc b/.coveragerc index cbc6c5c50..ed1fb9759 100644 --- a/.coveragerc +++ b/.coveragerc @@ -16,3 +16,11 @@ source = src/ */lib/python*/site-packages/ */pypy*/site-packages/ *\Lib\site-packages\ + +[report] +skip_covered = True +show_missing = True +exclude_lines = + \#\s*pragma: no cover + ^\s*raise NotImplementedError\b + ^\s*return NotImplemented\b