Skip to content

Commit b9056e7

Browse files
committed
refac: apply ruff format
1 parent 15fbbcb commit b9056e7

File tree

5 files changed

+214
-93
lines changed

5 files changed

+214
-93
lines changed

pylsp/__main__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,11 @@ def main() -> None:
7171
LSP_SERVER.check_parent_process()
7272

7373
if args.tcp:
74-
LSP_SERVER.start_tcp(
75-
args.host, args.port
76-
)
74+
LSP_SERVER.start_tcp(args.host, args.port)
7775
elif args.ws:
7876
LSP_SERVER.start_ws(
79-
args.host, args.port,
77+
args.host,
78+
args.port,
8079
)
8180
else:
8281
LSP_SERVER.start_io()

pylsp/_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ def get_eol_chars(text):
417417
return match.group(0)
418418
return None
419419

420+
420421
def flatten(lst: Iterable[Iterable[Any]]) -> List[Any] | None:
421422
"""Flatten a iterable of iterables into a single list."""
422423
if not lst:

0 commit comments

Comments
 (0)