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