Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Jul 29, 2024
1 parent 8e100ff commit 1c64a3e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion pylsp/hookspecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ def pylsp_lint(config, workspace, document, is_saved) -> None:


@hookspec
def pylsp_references(config, workspace, document, position, exclude_declaration) -> None:
def pylsp_references(
config, workspace, document, position, exclude_declaration
) -> None:
pass


Expand Down
4 changes: 3 additions & 1 deletion pylsp/plugins/rope_autoimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,9 @@ def pylsp_document_did_open(config: Config, workspace: Workspace) -> None:


@hookimpl
def pylsp_document_did_save(config: Config, workspace: Workspace, document: Document) -> None:
def pylsp_document_did_save(
config: Config, workspace: Workspace, document: Document
) -> None:
"""Update the names associated with this document."""
cache.reload_cache(config, workspace, [document])

Expand Down
4 changes: 3 additions & 1 deletion pylsp/python_lsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,9 @@ def lint(self, doc_uri, is_saved) -> None:
elif isinstance(document_object, Notebook):
self._lint_notebook_document(document_object, workspace)

def _lint_text_document(self, doc_uri, workspace, is_saved, doc_version=None) -> None:
def _lint_text_document(
self, doc_uri, workspace, is_saved, doc_version=None
) -> None:
workspace.publish_diagnostics(
doc_uri,
flatten(self._hook("pylsp_lint", doc_uri, is_saved=is_saved)),
Expand Down
4 changes: 3 additions & 1 deletion test/plugins/test_autoimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ class sfa:
"message",
["Undefined name `os`", "F821 undefined name 'numpy'", "undefined name 'numpy'"],
)
def test_autoimport_code_actions_get_correct_module_name(autoimport_workspace, message) -> None:
def test_autoimport_code_actions_get_correct_module_name(
autoimport_workspace, message
) -> None:
source = "os.path.join('a', 'b')"
autoimport_workspace.put_document(DOC_URI, source=source)
doc = autoimport_workspace.get_document(DOC_URI)
Expand Down
4 changes: 3 additions & 1 deletion test/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ def test_set_flake8_using_init_opts(client_server_pair) -> None:


@pytest.mark.skipif(IS_WIN, reason="Flaky on Windows")
def test_set_flake8_using_workspace_did_change_configuration(client_server_pair) -> None:
def test_set_flake8_using_workspace_did_change_configuration(
client_server_pair,
) -> None:
client, server = client_server_pair
send_initialize_request(client, None)
assert (
Expand Down
4 changes: 3 additions & 1 deletion test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ class ClientServerPair:
check_parent_process: if True, the server_process will check if the parent process is alive.
"""

def __init__(self, start_server_in_process=False, check_parent_process=False) -> None:
def __init__(
self, start_server_in_process=False, check_parent_process=False
) -> None:
# Client to Server pipe
csr, csw = os.pipe()
# Server to client pipe
Expand Down

0 comments on commit 1c64a3e

Please sign in to comment.