Skip to content

Commit d083f7a

Browse files
committed
linting
1 parent 16515bf commit d083f7a

File tree

19 files changed

+36
-14
lines changed

19 files changed

+36
-14
lines changed

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
""" Documentation configuration and workflow for jupyter-starters
22
"""
3+
34
# pylint: disable=invalid-name,redefined-builtin,import-error
45

56
import subprocess
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
""" single source of truth for jupyter_lsp version
22
"""
3+
34
__version__ = "2.2.2"

python_packages/jupyter_lsp/jupyter_lsp/handlers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
""" tornado handler for managing and communicating with language servers
22
"""
3+
34
from typing import Optional, Text
45

56
from jupyter_core.utils import ensure_async

python_packages/jupyter_lsp/jupyter_lsp/manager.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
""" A configurable frontend for stdio-based Language Servers
22
"""
3+
34
import asyncio
45
import os
56
import sys
@@ -65,12 +66,12 @@ class LanguageServerManager(LanguageServerManagerAPI):
6566
True, help=_("try to find known language servers in sys.prefix (and elsewhere)")
6667
).tag(config=True)
6768

68-
sessions: Dict[
69-
Tuple[Text], LanguageServerSession
70-
] = Dict_( # type:ignore[assignment]
71-
trait=Instance(LanguageServerSession),
72-
default_value={},
73-
help="sessions keyed by language server name",
69+
sessions: Dict[Tuple[Text], LanguageServerSession] = (
70+
Dict_( # type:ignore[assignment]
71+
trait=Instance(LanguageServerSession),
72+
default_value={},
73+
help="sessions keyed by language server name",
74+
)
7475
)
7576

7677
virtual_documents_dir = Unicode(

python_packages/jupyter_lsp/jupyter_lsp/non_blocking.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
> MIT License https://github.com/rudolfwalter/pygdbmi/blob/master/LICENSE
66
> Copyright (c) 2016 Chad Smith <grassfedcode <at> gmail.com>
77
"""
8+
89
import os
910

1011
if os.name == "nt": # pragma: no cover

python_packages/jupyter_lsp/jupyter_lsp/serverextension.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
""" add language server support to the running jupyter notebook application
22
"""
3+
34
import json
45
from pathlib import Path
56

python_packages/jupyter_lsp/jupyter_lsp/session.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
""" A session for managing a language server process
22
"""
3+
34
import asyncio
45
import atexit
56
import os
@@ -66,12 +67,16 @@ def to_json(self):
6667
return dict(
6768
handler_count=len(self.handlers),
6869
status=self.status.value,
69-
last_server_message_at=self.last_server_message_at.isoformat()
70-
if self.last_server_message_at
71-
else None,
72-
last_handler_message_at=self.last_handler_message_at.isoformat()
73-
if self.last_handler_message_at
74-
else None,
70+
last_server_message_at=(
71+
self.last_server_message_at.isoformat()
72+
if self.last_server_message_at
73+
else None
74+
),
75+
last_handler_message_at=(
76+
self.last_handler_message_at.isoformat()
77+
if self.last_handler_message_at
78+
else None
79+
),
7580
spec=censored_spec(self.spec),
7681
)
7782

python_packages/jupyter_lsp/jupyter_lsp/specs/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
""" default specs
22
"""
3+
34
# flake8: noqa: F401
45

56
from .bash_language_server import BashLanguageServer

python_packages/jupyter_lsp/jupyter_lsp/stdio.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
> > MIT License https://github.com/palantir/python-jsonrpc-server/blob/0.2.0/LICENSE
88
> > Copyright 2018 Palantir Technologies, Inc.
99
"""
10+
1011
# pylint: disable=broad-except
1112
import asyncio
1213
import io

python_packages/jupyter_lsp/jupyter_lsp/tests/test_auth.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Integration tests of authorization running under jupyter-server."""
2+
23
import json
34
import os
45
import socket

0 commit comments

Comments
 (0)