Skip to content

Commit

Permalink
refac: fix pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
hlouzada committed Jan 22, 2025
1 parent 5d8d553 commit 91ae29a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion spyder/api/asyncdispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(self,
loop : asyncio.AbstractEventLoop, optional
The event loop to be used, by default get the current event loop.
early_return : bool, optional
Return the coroutine as a Future object before it is done
Return the coroutine as a Future object before it is done
or wait for it to finish and return the result.
return_awaitable : bool, optional
Return the coroutine as an awaitable object instead of a Future.
Expand Down
3 changes: 2 additions & 1 deletion spyder/plugins/remoteclient/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ class SpyderRemoteAPIManager:
START_SERVER_COMMAND = (
f"/${{HOME}}/.local/bin/micromamba run -n {SERVER_ENV} spyder-server"
)
GET_SERVER_INFO_COMMAND = f"/${{HOME}}/.local/bin/micromamba run -n {SERVER_ENV} spyder-server info"
GET_SERVER_INFO_COMMAND = (f"/${{HOME}}/.local/bin/micromamba run"
f" -n {SERVER_ENV} spyder-server info")

def __init__(self, conf_id, options: SSHClientOptions, _plugin=None):
self._config_id = conf_id
Expand Down
8 changes: 5 additions & 3 deletions spyder/plugins/remoteclient/api/modules/file_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
from spyder.plugins.remoteclient.api.modules.base import SpyderBaseJupyterAPI
from spyder.plugins.remoteclient.api import SpyderRemoteAPIManager

SPYDER_PLUGIN_NAME = "spyder-services" # jupyter server's extension name for spyder-remote-services
# jupyter server's extension name for spyder-remote-services
SPYDER_PLUGIN_NAME = "spyder-services"


class SpyderServicesError(Exception): ...
class SpyderServicesError(Exception):
...


class RemoteFileServicesError(SpyderServicesError):
Expand Down Expand Up @@ -249,7 +251,7 @@ async def readlines(self, hint: int = -1) -> list[bytes | str]:
async def writelines(self, lines: list[bytes | str]):
"""Write lines to the file."""
await self._send_request(
"writelines", lines=[self._encode_data(l) for l in lines]
"writelines", lines=list(map(self._encode_data, lines))
)
return await self._get_response()

Expand Down
3 changes: 2 additions & 1 deletion spyder/plugins/remoteclient/utils/installation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

SERVER_ENV = "spyder-remote"
PACKAGE_NAME = "spyder-remote-services"
SCRIPT_URL = f"https://raw.githubusercontent.com/spyder-ide/{PACKAGE_NAME}/master/scripts"
SCRIPT_URL = ("https://raw.githubusercontent.com/spyder-ide/"
f"{PACKAGE_NAME}/master/scripts")


def get_installer_command(platform: str) -> str:
Expand Down

0 comments on commit 91ae29a

Please sign in to comment.