style: ruff format after MCP server integration

Reformat the files touched by Tasks 1-14 of the host-agent MCP server
plan. No semantic changes; pre-existing format issues in unrelated
files (test_templates, test_skill_sync_wiring, 0010_skill_management,
test_skill_catalog_mcp) left untouched for a separate housekeeping
pass.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-07-21 15:52:32 +08:00
co-authored by Claude Opus 4.6
parent 6d9237a592
commit e69cea0245
16 changed files with 60 additions and 62 deletions
@@ -25,4 +25,4 @@ def upgrade() -> None:
def downgrade() -> None:
op.drop_column("pooled_devices", "mcp_busy")
op.drop_column("pooled_devices", "mcp_busy")
+1 -3
View File
@@ -82,9 +82,7 @@ class DevicePool:
)
busy_set = set(mcp_busy_device_ids or [])
devices = [
self._to_pooled(
device, host_id, now, mcp_busy=device.id in busy_set
)
self._to_pooled(device, host_id, now, mcp_busy=device.id in busy_set)
for device in snapshot
]
if allow_device_takeover:
+3 -7
View File
@@ -48,9 +48,7 @@ def test_sync_host_devices_marks_mcp_busy_devices(pool: DevicePool) -> None:
def test_sync_host_devices_default_mcp_busy_is_false(pool: DevicePool) -> None:
pool.sync_host_devices(
"host-1", [_device("device-1", status="idle")]
)
pool.sync_host_devices("host-1", [_device("device-1", status="idle")])
devices = pool.list_devices()
assert devices[0].mcp_busy is False
@@ -65,8 +63,6 @@ def test_sync_host_devices_clears_mcp_busy_on_next_sync(
[_device("device-1", status="idle")],
mcp_busy_device_ids=["device-1"],
)
pool.sync_host_devices(
"host-1", [_device("device-1", status="idle")]
)
pool.sync_host_devices("host-1", [_device("device-1", status="idle")])
devices = pool.list_devices()
assert devices[0].mcp_busy is False
assert devices[0].mcp_busy is False
@@ -50,4 +50,4 @@ def test_mcp_busy_device_is_skipped_by_scheduler(pool: DevicePool) -> None:
scheduler.submit(goal="test", constraints=TaskConstraints())
assignments = scheduler.assign()
assert len(assignments) == 1
assert assignments[0].device_id == "dev-idle"
assert assignments[0].device_id == "dev-idle"