Coverage: Exclude few lines from coverage

This commit is contained in:
Henrique Gemignani Passos Lima
2022-02-20 19:40:35 +02:00
parent b1391147ae
commit ea03b8819c
+22
View File
@@ -1,4 +1,26 @@
[run]
branch = True
omit =
# omit generated UI code
*_ui.py
[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# 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:
# Don't complain about abstract methods, they aren't run:
@(abc\.)?abstractmethod
# Don't complain about type checking imports
if TYPE_CHECKING:
if typing\.TYPE_CHECKING: