Skip to content

Commit 1c64a3e

Browse files
committed
Fix formatting
1 parent 8e100ff commit 1c64a3e

File tree

6 files changed

+18
-6
lines changed

6 files changed

+18
-6
lines changed

pylsp/hookspecs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ def pylsp_lint(config, workspace, document, is_saved) -> None:
109109

110110

111111
@hookspec
112-
def pylsp_references(config, workspace, document, position, exclude_declaration) -> None:
112+
def pylsp_references(
113+
config, workspace, document, position, exclude_declaration
114+
) -> None:
113115
pass
114116

115117

pylsp/plugins/rope_autoimport.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,9 @@ def pylsp_document_did_open(config: Config, workspace: Workspace) -> None:
383383

384384

385385
@hookimpl
386-
def pylsp_document_did_save(config: Config, workspace: Workspace, document: Document) -> None:
386+
def pylsp_document_did_save(
387+
config: Config, workspace: Workspace, document: Document
388+
) -> None:
387389
"""Update the names associated with this document."""
388390
cache.reload_cache(config, workspace, [document])
389391

pylsp/python_lsp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,9 @@ def lint(self, doc_uri, is_saved) -> None:
448448
elif isinstance(document_object, Notebook):
449449
self._lint_notebook_document(document_object, workspace)
450450

451-
def _lint_text_document(self, doc_uri, workspace, is_saved, doc_version=None) -> None:
451+
def _lint_text_document(
452+
self, doc_uri, workspace, is_saved, doc_version=None
453+
) -> None:
452454
workspace.publish_diagnostics(
453455
doc_uri,
454456
flatten(self._hook("pylsp_lint", doc_uri, is_saved=is_saved)),

test/plugins/test_autoimport.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ class sfa:
237237
"message",
238238
["Undefined name `os`", "F821 undefined name 'numpy'", "undefined name 'numpy'"],
239239
)
240-
def test_autoimport_code_actions_get_correct_module_name(autoimport_workspace, message) -> None:
240+
def test_autoimport_code_actions_get_correct_module_name(
241+
autoimport_workspace, message
242+
) -> None:
241243
source = "os.path.join('a', 'b')"
242244
autoimport_workspace.put_document(DOC_URI, source=source)
243245
doc = autoimport_workspace.get_document(DOC_URI)

test/test_configuration.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ def test_set_flake8_using_init_opts(client_server_pair) -> None:
3030

3131

3232
@pytest.mark.skipif(IS_WIN, reason="Flaky on Windows")
33-
def test_set_flake8_using_workspace_did_change_configuration(client_server_pair) -> None:
33+
def test_set_flake8_using_workspace_did_change_configuration(
34+
client_server_pair,
35+
) -> None:
3436
client, server = client_server_pair
3537
send_initialize_request(client, None)
3638
assert (

test/test_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ class ClientServerPair:
8585
check_parent_process: if True, the server_process will check if the parent process is alive.
8686
"""
8787

88-
def __init__(self, start_server_in_process=False, check_parent_process=False) -> None:
88+
def __init__(
89+
self, start_server_in_process=False, check_parent_process=False
90+
) -> None:
8991
# Client to Server pipe
9092
csr, csw = os.pipe()
9193
# Server to client pipe

0 commit comments

Comments
 (0)