Skip to content

Commit d372737

Browse files
committed
Address flake8 issues
1 parent 5fd977a commit d372737

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

testsuite/drivers/lsp_ada_requests.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# TODO: use a library such as pytest-lsp to support most requests
99

1010

11-
def initialize(workspacefolder=URI(".")):
11+
def initialize(workspacefolder=URI(".")): # noqa: B008
1212
"""This mimics what vs code sends at the moment"""
1313
return LSPMessage(
1414
{
@@ -133,7 +133,7 @@ def initialized():
133133

134134

135135
def didChangeConfiguration(
136-
scenarioVariables={},
136+
scenarioVariables={}, # noqa: B006
137137
defaultCharset="ISO-8859-1",
138138
enableDiagnostics=False,
139139
followSymlinks=False,
@@ -178,9 +178,10 @@ def didOpen_from_disk(filename: str, language: str = "ada"):
178178
False,
179179
)
180180

181+
181182
def prepareCallHierarchy(filename: str, line: int, character: int):
182183
"""Craft a textDocument/prepareCallHierarchy request.
183-
line and character are specified in 1-based coordinates.
184+
line and character are specified in 1-based coordinates.
184185
"""
185186
return LSPMessage(
186187
{
@@ -192,9 +193,10 @@ def prepareCallHierarchy(filename: str, line: int, character: int):
192193
}
193194
)
194195

196+
195197
def incomingCalls(filename: str, line: int, character: int):
196198
"""Craft a callHierarchy/incomingCalls request.
197-
line and character are specified in 1-based coordinates.
199+
line and character are specified in 1-based coordinates.
198200
"""
199201
return LSPMessage(
200202
{

0 commit comments

Comments
 (0)