Skip to content

Commit

Permalink
solving ruff issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni committed Jul 30, 2024
1 parent eae92ac commit fa937af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/plugins/test_autopep8_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ def test_range_format(config, workspace) -> None:

def test_no_change(config, workspace) -> None:
doc = Document(uri=DOC_URI, workspace=workspace, source=GOOD_DOC)

assert not pylsp_format_document(config=config, workspace=workspace, document=doc, options=None)


def test_hanging_indentation(config, workspace) -> None:
doc = Document(uri=DOC_URI, workspace=workspace, source=INDENTED_DOC)
res = pylsp_format_document(config=config, workspace=workspace, document=doc, options=None)

assert len(res) == 1
assert res[0]["newText"] == CORRECT_INDENTED_DOC

Expand Down
2 changes: 1 addition & 1 deletion test/plugins/test_symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def sym(name):
def test_symbols_all_scopes(config, workspace) -> None:
doc = Document(uri=DOC_URI, workspace=workspace, source=DOC)
symbols = pylsp_document_symbols(config=config, document=doc)

helper_check_symbols_all_scope(symbols)


Expand Down

0 comments on commit fa937af

Please sign in to comment.