Skip to content

Commit c1f5d2a

Browse files
committed
lint
1 parent 2f9a509 commit c1f5d2a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pylsp/plugins/yapf_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,4 @@ def _format(document, lines=None, options=None):
170170
'newText': diff.changes[-1].line + eol_chars
171171
})
172172

173-
return textEdits
173+
return textEdits

test/plugins/test_yapf_format.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def test_config_file(tmpdir, workspace):
6868
def test_line_endings(workspace, newline):
6969
doc = Document(DOC_URI, workspace, f'import os;import sys{2 * newline}dict(a=1)')
7070
res = pylsp_format_document(doc)
71-
71+
7272
assert apply_text_edits(doc, res) == f'import os{newline}import sys{2 * newline}dict(a=1){newline}'
7373

7474

@@ -105,5 +105,3 @@ def test_format_returns_text_edit_per_line(workspace):
105105
assert res[1]['newText'] == ""
106106
assert res[2]['newText'] == " print(\"x\")\n"
107107
assert res[3]['newText'] == " print(\"hi\")\n"
108-
109-

0 commit comments

Comments
 (0)