Skip to content

Commit eca301d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 2e9bb8f commit eca301d

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

fortls/objects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ def get_desc(self):
716716
return "MODULE"
717717

718718
def get_hover(self, long=False, include_doc=True, drop_arg=-1):
719-
hover = 'MODULE ' + self.name
719+
hover = "MODULE " + self.name
720720
if include_doc:
721721
doc_str = self.get_documentation()
722722
if doc_str is not None:
@@ -1333,7 +1333,7 @@ def get_hover(self, long=False, include_doc=True, drop_arg=-1):
13331333
keywords += ", ABSTRACT"
13341334
if self.inherit:
13351335
keywords += ", EXTENDS({})".format(self.inherit)
1336-
hover = 'TYPE{} :: {}'.format(keywords, self.name)
1336+
hover = "TYPE{} :: {}".format(keywords, self.name)
13371337
if include_doc:
13381338
doc_str = self.get_documentation()
13391339
if doc_str is not None:

test/test_server_documentation.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import logging
2+
23
from setup_tests import run_request, test_dir, write_rpc_request
34

45

@@ -188,9 +189,7 @@ def test_ford_doc_for_module_use():
188189
errcode, results = run_request(string)
189190
assert errcode == 0
190191
print(results[1])
191-
ref = (
192-
(1, "!! Doc for ford_doc_mod"),
193-
)
192+
ref = ((1, "!! Doc for ford_doc_mod"),)
194193
check_return(results[1], ref)
195194

196195

@@ -201,9 +200,7 @@ def test_doxygen_doc_for_type():
201200
errcode, results = run_request(string)
202201
assert errcode == 0
203202
print(results[1])
204-
ref = (
205-
(1, "!! Doc for a_t"),
206-
)
203+
ref = ((1, "!! Doc for a_t"),)
207204
check_return(results[1], ref)
208205

209206

@@ -214,7 +211,5 @@ def test_ford_doc_for_type():
214211
errcode, results = run_request(string)
215212
assert errcode == 0
216213
print(results[1])
217-
ref = (
218-
(1, "!! Doc for b_t"),
219-
)
220-
check_return(results[1], ref)
214+
ref = ((1, "!! Doc for b_t"),)
215+
check_return(results[1], ref)

0 commit comments

Comments
 (0)