Configure coverage.py for "if MYPY:"
This commit is contained in:
parent
c752ba4721
commit
403e63d6f2
@ -14,6 +14,7 @@ exclude_lines =
|
||||
raise NotImplementedError
|
||||
raise utils\.Unreachable
|
||||
if __name__ == ["']__main__["']:
|
||||
if MYPY:
|
||||
|
||||
[xml]
|
||||
output=coverage.xml
|
||||
|
@ -22,7 +22,7 @@
|
||||
import typing
|
||||
|
||||
MYPY = False
|
||||
if MYPY: # pragma: no cover
|
||||
if MYPY:
|
||||
# pylint: disable=unused-import,useless-suppression
|
||||
from qutebrowser.config import config
|
||||
|
||||
|
@ -33,7 +33,7 @@ from qutebrowser.misc import objects
|
||||
from qutebrowser.keyinput import keyutils
|
||||
|
||||
MYPY = False
|
||||
if MYPY: # pragma: no cover
|
||||
if MYPY:
|
||||
# pylint: disable=unused-import,useless-suppression
|
||||
from typing import Tuple, MutableMapping
|
||||
from qutebrowser.config import configcache, configfiles
|
||||
|
@ -33,7 +33,7 @@ from qutebrowser.misc import editor
|
||||
from qutebrowser.keyinput import keyutils
|
||||
|
||||
MYPY = False
|
||||
if MYPY: # pragma: no cover
|
||||
if MYPY:
|
||||
# pylint: disable=unused-import,useless-suppression
|
||||
from qutebrowser.config.config import Config, KeyConfig
|
||||
|
||||
|
@ -38,7 +38,7 @@ from qutebrowser.keyinput import keyutils
|
||||
from qutebrowser.utils import standarddir, utils, qtutils, log, urlmatch
|
||||
|
||||
MYPY = False
|
||||
if MYPY: # pragma: no cover
|
||||
if MYPY:
|
||||
# pylint: disable=unused-import, useless-suppression
|
||||
from qutebrowser.misc import savemanager
|
||||
|
||||
|
@ -30,7 +30,7 @@ from qutebrowser.utils import utils, urlmatch
|
||||
from qutebrowser.config import configexc
|
||||
|
||||
MYPY = False
|
||||
if MYPY: # pragma: no cover
|
||||
if MYPY:
|
||||
# pylint: disable=unused-import,useless-suppression
|
||||
from qutebrowser.config import configdata
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
import typing
|
||||
|
||||
MYPY = False
|
||||
if MYPY: # pragma: no cover
|
||||
if MYPY:
|
||||
# pylint: disable=unused-import,useless-suppression
|
||||
from qutebrowser.utils import usertypes
|
||||
from qutebrowser.commands import command
|
||||
|
Loading…
Reference in New Issue
Block a user