Skip to content

Commit f50b5f5

Browse files
pre-commit-ci[bot]klieret
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d30c23f commit f50b5f5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/swerex/runtime/remote.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def __init__(
6060
def from_config(cls, config: RemoteRuntimeConfig) -> Self:
6161
return cls(**config.model_dump())
6262

63-
6463
def _get_timeout(self, timeout: float | None = None) -> float:
6564
if timeout is None:
6665
return self._config.timeout
@@ -133,7 +132,9 @@ async def is_alive(self, *, timeout: float | None = None) -> IsAliveResponse:
133132
async with aiohttp.ClientSession(connector=aiohttp.TCPConnector(force_close=True)) as session:
134133
timeout_value = self._get_timeout(timeout)
135134
async with session.get(
136-
f"{self._api_url}/is_alive", headers=self._headers, timeout=aiohttp.ClientTimeout(total=timeout_value)
135+
f"{self._api_url}/is_alive",
136+
headers=self._headers,
137+
timeout=aiohttp.ClientTimeout(total=timeout_value),
137138
) as response:
138139
if response.status == 200:
139140
data = await response.json()
@@ -231,4 +232,4 @@ async def upload(self, request: UploadRequest) -> UploadResponse:
231232

232233
async def close(self) -> CloseResponse:
233234
"""Closes the runtime."""
234-
return await self._request("close", None, CloseResponse)
235+
return await self._request("close", None, CloseResponse)

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
import swerex.server
1010
from swerex.runtime.abstract import (
1111
BashAction,
12+
CloseBashSessionRequest,
1213
Command,
1314
CreateBashSessionRequest,
14-
CloseBashSessionRequest,
1515
)
1616
from swerex.runtime.remote import RemoteRuntime
1717
from swerex.utils.free_port import find_free_port

0 commit comments

Comments
 (0)