Skip to content

Commit f0d0228

Browse files
committed
run black again with version that matches pyproject.toml
1 parent 894d5e5 commit f0d0228

File tree

7 files changed

+4
-10
lines changed

7 files changed

+4
-10
lines changed

pylsp/plugins/definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def pylsp_definitions(config, document, position):
1414
definitions = document.jedi_script(use_document_path=True).goto(
1515
follow_imports=settings.get("follow_imports", True),
1616
follow_builtin_imports=settings.get("follow_builtin_imports", True),
17-
**code_position
17+
**code_position,
1818
)
1919

2020
follow_builtin_defns = settings.get("follow_builtin_definitions", True)

pylsp/plugins/folding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def pylsp_folding_range(document):
2020
ranges = __compute_folding_ranges(tree, lines)
2121

2222
results = []
23-
for (start_line, end_line) in ranges:
23+
for start_line, end_line in ranges:
2424
start_line -= 1
2525
end_line -= 1
2626
# If start/end character is not defined, then it defaults to the

pylsp/plugins/pycodestyle_lint.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def __init__(self, options):
6969
self.diagnostics = []
7070
super().__init__(options=options)
7171

72-
# pylint: disable=unused-argument
7372
def error(self, line_number, offset, text, check):
7473
code = text[:4]
7574
if self._ignore_code(code):

pylsp/plugins/rope_autoimport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
log = logging.getLogger(__name__)
2121

2222
_score_pow = 5
23-
_score_max = 10 ** _score_pow
23+
_score_max = 10**_score_pow
2424
MAX_RESULTS = 1000
2525

2626

pylsp/python_lsp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def m_initialize(
304304
rootPath=None,
305305
initializationOptions=None,
306306
workspaceFolders=None,
307-
**_kwargs
307+
**_kwargs,
308308
):
309309
log.debug(
310310
"Language server initialized with %s %s %s %s",

pylsp/workspace.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def wrapper(self, *args, **kwargs):
3636

3737

3838
class Workspace:
39-
4039
# pylint: disable=too-many-public-methods
4140

4241
M_PUBLISH_DIAGNOSTICS = "textDocument/publishDiagnostics"

test/plugins/test_autoimport.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def test_autoimport_import_with_name(completions):
8787

8888
@pytest.mark.parametrize("completions", [("""def func(s""", 10)], indirect=True)
8989
def test_autoimport_function(completions):
90-
9190
assert len(completions) == 0
9291

9392

@@ -183,18 +182,15 @@ def test_autoimport_defined_name(config, workspace):
183182

184183
class TestShouldInsert:
185184
def test_dot(self):
186-
187185
assert not should_insert("""str.""", 4)
188186

189187
def test_dot_partial(self):
190-
191188
assert not should_insert("""str.metho\n""", 9)
192189

193190
def test_comment(self):
194191
assert not should_insert("""#""", 1)
195192

196193
def test_comment_indent(self):
197-
198194
assert not should_insert(""" # """, 5)
199195

200196
def test_from(self):

0 commit comments

Comments
 (0)