You've already forked randovania
mirror of
https://github.com/CraftyBoss/randovania.git
synced 2026-07-14 05:07:31 -07:00
Coverage: Exclude few lines from coverage
This commit is contained in:
+22
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user