Skip to content

Commit 6806d4d

Browse files
committed
Ignore linter warning that jpype.imports is imported, but not used.
1 parent c43aaee commit 6806d4d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

mph/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from .config import option
88

99
import jpype
10-
import jpype.imports
10+
import jpype.imports # noqa: F401 (imported, but not used)
1111
import os
1212
import faulthandler
1313
from pathlib import Path

mph/discovery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def find_backends() -> list[Backend]:
378378
command = server + ['--version']
379379
command[0] = str(command[0]) # Needed to support Python 3.6 and 3.7.
380380
try:
381-
arguments = dict( # noqa: C408 (unnecessary dict() call)
381+
arguments = dict( # noqa: C408 (unnecessary `dict()` call)
382382
check=True, timeout=15,
383383
stdout=subprocess.PIPE, stderr=subprocess.DEVNULL,
384384
universal_newlines=True, encoding='ascii', errors='ignore',

tests/exit_nojvm_exc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Process exiting with exception when no Java VM is running."""
22

3-
import mph # noqa F401
3+
import mph # noqa: F401 (imported but not used)
44

55

66
raise RuntimeError

tests/exit_nojvm_sys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Process exiting via `sys.exit()` with no Java VM running."""
22

3-
import mph # noqa F401
3+
import mph # noqa: F401 (imported but not used)
44

55
import sys
66

0 commit comments

Comments
 (0)