Skip to content

Commit 662b81e

Browse files
committed
fix linter errors
1 parent c6991e9 commit 662b81e

5 files changed

Lines changed: 16 additions & 10 deletions

File tree

scripts/lint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
cd "$(dirname "$0")/.."
66

77
echo "==> Running lints"
8-
uv run ruff check .
8+
uv run ruff check . "$@"
99

1010
echo "==> Making sure it imports"
1111
uv run python -c 'import runloop_api_client'

src/runloop_api_client/sdk/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
AsyncBlueprintOps,
1717
AsyncStorageObjectOps,
1818
)
19-
from .agent import Agent
2019
from .devbox import Devbox, NamedShell
2120
from .scorer import Scorer
2221
from .snapshot import Snapshot

tests/sdk/test_async_ops.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,30 @@
1111
import pytest
1212

1313
from tests.sdk.conftest import (
14+
MockAgentView,
1415
MockDevboxView,
1516
MockObjectView,
1617
MockScorerView,
1718
MockSnapshotView,
1819
MockBlueprintView,
19-
MockAgentView,
2020
create_mock_httpx_response,
2121
)
22-
from runloop_api_client.sdk import AsyncAgent, AsyncDevbox, AsyncScorer, AsyncSnapshot, AsyncBlueprint, AsyncStorageObject
22+
from runloop_api_client.sdk import (
23+
AsyncAgent,
24+
AsyncDevbox,
25+
AsyncScorer,
26+
AsyncSnapshot,
27+
AsyncBlueprint,
28+
AsyncStorageObject,
29+
)
2330
from runloop_api_client.sdk.async_ import (
31+
AsyncAgentOps,
2432
AsyncDevboxOps,
2533
AsyncScorerOps,
2634
AsyncRunloopSDK,
2735
AsyncSnapshotOps,
2836
AsyncBlueprintOps,
2937
AsyncStorageObjectOps,
30-
AsyncAgentOps,
3138
)
3239
from runloop_api_client.lib.polling import PollingConfig
3340

@@ -780,7 +787,7 @@ async def test_list(self, mock_async_client: AsyncMock) -> None:
780787
mock_async_client.agents.list = AsyncMock(return_value=page)
781788

782789
# Mock retrieve to return the corresponding agent_view when called
783-
async def mock_retrieve(agent_id, **kwargs):
790+
async def mock_retrieve(agent_id, **_unused_kwargs):
784791
if agent_id == "agent_001":
785792
return agent_view_1
786793
elif agent_id == "agent_002":

tests/sdk/test_ops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@
99
import pytest
1010

1111
from tests.sdk.conftest import (
12+
MockAgentView,
1213
MockDevboxView,
1314
MockObjectView,
1415
MockScorerView,
1516
MockSnapshotView,
1617
MockBlueprintView,
17-
MockAgentView,
1818
create_mock_httpx_response,
1919
)
2020
from runloop_api_client.sdk import Agent, Devbox, Scorer, Snapshot, Blueprint, StorageObject
2121
from runloop_api_client.sdk.sync import (
22+
AgentOps,
2223
DevboxOps,
2324
ScorerOps,
2425
RunloopSDK,
2526
SnapshotOps,
2627
BlueprintOps,
2728
StorageObjectOps,
28-
AgentOps,
2929
)
3030
from runloop_api_client.lib.polling import PollingConfig
3131

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)