Skip to content

Commit be14272

Browse files
committed
line length and format
1 parent 36e6bf3 commit be14272

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

pylsp_mypy/plugin.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,9 @@ def init(workspace: str) -> Dict[str, str]:
377377
return configuration
378378

379379

380-
def findConfigFile(path: str, configSubPaths: List[str], names: List[str], mypy: bool) -> Optional[str]:
380+
def findConfigFile(
381+
path: str, configSubPaths: List[str], names: List[str], mypy: bool
382+
) -> Optional[str]:
381383
"""
382384
Search for a config file.
383385
@@ -409,8 +411,9 @@ def findConfigFile(path: str, configSubPaths: List[str], names: List[str], mypy:
409411
if file.is_file():
410412
if file.name in ["mypy-ls.cfg", "mypy_ls.cfg"]:
411413
raise NameError(
412-
f"{str(file)}: {file.name} is no longer supported, you should rename your "
413-
"config file to pylsp-mypy.cfg or preferably use a pyproject.toml instead."
414+
f"{str(file)}: {file.name} is no longer supported, you should rename "
415+
"your config file to pylsp-mypy.cfg or preferably use a pyproject.toml "
416+
"instead."
414417
)
415418
if file.name == "pyproject.toml":
416419
configPresent = (

test/test_plugin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212

1313
from pylsp_mypy import plugin
1414

15-
DOC_URI = f"file:/{Path(__file__)}" #TODO using these file as a document is a bad idea as tests can break by adding new tests
15+
# TODO using these file as a document is a bad idea as tests can break by adding new tests
16+
DOC_URI = f"file:/{Path(__file__)}"
1617
DOC_TYPE_ERR = """{}.append(3)
1718
"""
1819
TYPE_ERR_MSG = '"Dict[<nothing>, <nothing>]" has no attribute "append" [attr-defined]'
@@ -69,7 +70,7 @@ def test_plugin(workspace, last_diagnostics_monkeypatch):
6970

7071

7172
def test_parse_full_line(workspace):
72-
diag = plugin.parse_line(TEST_LINE) #TODO parse a document here
73+
diag = plugin.parse_line(TEST_LINE) # TODO parse a document here
7374
assert diag["message"] == '"Request" has no attribute "id"'
7475
assert diag["range"]["start"] == {"line": 278, "character": 7}
7576
assert diag["range"]["end"] == {"line": 278, "character": 8}

0 commit comments

Comments
 (0)