Skip to content

Commit b50ce5f

Browse files
committed
formatting fixes
1 parent e49deaf commit b50ce5f

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/runloop_api_client/sdk/async_scenario_builder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,9 @@ def _build_params(self) -> ScenarioCreateParams:
401401

402402
# Normalize weights to sum to 1.0
403403
total_weight = sum(s["weight"] for s in self._scorers)
404-
normalized_scorers: List[ScoringFunctionParam] = [{**s, "weight": s["weight"] / total_weight} for s in self._scorers]
404+
normalized_scorers: List[ScoringFunctionParam] = [
405+
{**s, "weight": s["weight"] / total_weight} for s in self._scorers
406+
]
405407

406408
params: ScenarioCreateParams = {
407409
"name": self._name,

src/runloop_api_client/sdk/scenario_builder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,9 @@ def _build_params(self) -> ScenarioCreateParams:
401401

402402
# Normalize weights to sum to 1.0
403403
total_weight = sum(s["weight"] for s in self._scorers)
404-
normalized_scorers: List[ScoringFunctionParam] = [{**s, "weight": s["weight"] / total_weight} for s in self._scorers]
404+
normalized_scorers: List[ScoringFunctionParam] = [
405+
{**s, "weight": s["weight"] / total_weight} for s in self._scorers
406+
]
405407

406408
params: ScenarioCreateParams = {
407409
"name": self._name,

tests/smoketests/sdk/test_async_scenario.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,7 @@ async def test_scenario_builder_minimal(self, async_sdk_client: AsyncRunloopSDK)
204204

205205
@pytest.mark.timeout(FIVE_MINUTE_TIMEOUT)
206206
async def test_scenario_builder_with_blueprint(self, async_sdk_client: AsyncRunloopSDK) -> None:
207-
"""Test creating/updating a scenario from a blueprint.
208-
"""
207+
"""Test creating/updating a scenario from a blueprint."""
209208
blueprint = await async_sdk_client.blueprint.create(
210209
name=unique_name("sdk-smoketest-async-scenario-bp"),
211210
dockerfile="FROM ubuntu:20.04",
@@ -230,8 +229,7 @@ async def test_scenario_builder_with_blueprint(self, async_sdk_client: AsyncRunl
230229

231230
@pytest.mark.timeout(TEN_MINUTE_TIMEOUT)
232231
async def test_scenario_builder_with_snapshot(self, async_sdk_client: AsyncRunloopSDK) -> None:
233-
"""Test creating/updating a scenario from a snapshot.
234-
"""
232+
"""Test creating/updating a scenario from a snapshot."""
235233
# Create blueprint -> devbox -> snapshot chain
236234
blueprint = await async_sdk_client.blueprint.create(
237235
name=unique_name("sdk-smoketest-async-scenario-snap-bp"),

tests/smoketests/sdk/test_scenario.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,7 @@ def test_scenario_builder_minimal(self, sdk_client: RunloopSDK) -> None:
203203

204204
@pytest.mark.timeout(FIVE_MINUTE_TIMEOUT)
205205
def test_scenario_builder_with_blueprint(self, sdk_client: RunloopSDK) -> None:
206-
"""Test creating/updating a scenario from a blueprint.
207-
"""
206+
"""Test creating/updating a scenario from a blueprint."""
208207
blueprint = sdk_client.blueprint.create(
209208
name=unique_name("sdk-smoketest-scenario-bp"),
210209
dockerfile="FROM ubuntu:20.04",
@@ -229,8 +228,7 @@ def test_scenario_builder_with_blueprint(self, sdk_client: RunloopSDK) -> None:
229228

230229
@pytest.mark.timeout(TEN_MINUTE_TIMEOUT)
231230
def test_scenario_builder_with_snapshot(self, sdk_client: RunloopSDK) -> None:
232-
"""Test creating/updating a scenario from a snapshot.
233-
"""
231+
"""Test creating/updating a scenario from a snapshot."""
234232
# Create blueprint -> devbox -> snapshot chain
235233
blueprint = sdk_client.blueprint.create(
236234
name=unique_name("sdk-smoketest-scenario-snap-bp"),

0 commit comments

Comments
 (0)