From e8600420b286b07e8cdc10549ce47efc1b4d8fc6 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Sun, 8 Feb 2026 00:51:57 +0530 Subject: [PATCH] refactor: clean up imports and remove trailing whitespace in multiple files --- backend/app/api/agent.py | 7 ++++++- backend/app/api/souls_directory.py | 1 - backend/app/schemas/souls_directory.py | 1 - backend/tests/test_souls_directory.py | 1 - 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/backend/app/api/agent.py b/backend/app/api/agent.py index 88921a01..5c6d5b09 100644 --- a/backend/app/api/agent.py +++ b/backend/app/api/agent.py @@ -21,7 +21,12 @@ from app.core.time import utcnow from app.db.pagination import paginate from app.db.session import get_session from app.integrations.openclaw_gateway import GatewayConfig as GatewayClientConfig -from app.integrations.openclaw_gateway import OpenClawGatewayError, ensure_session, openclaw_call, send_message +from app.integrations.openclaw_gateway import ( + OpenClawGatewayError, + ensure_session, + openclaw_call, + send_message, +) from app.models.activity_events import ActivityEvent from app.models.agents import Agent from app.models.approvals import Approval diff --git a/backend/app/api/souls_directory.py b/backend/app/api/souls_directory.py index c66ce8de..73565a96 100644 --- a/backend/app/api/souls_directory.py +++ b/backend/app/api/souls_directory.py @@ -71,4 +71,3 @@ async def get_markdown( except Exception as exc: raise HTTPException(status_code=status.HTTP_502_BAD_GATEWAY, detail=str(exc)) from exc return SoulsDirectoryMarkdownResponse(handle=safe_handle, slug=safe_slug, content=content) - diff --git a/backend/app/schemas/souls_directory.py b/backend/app/schemas/souls_directory.py index 1902e739..aff2192b 100644 --- a/backend/app/schemas/souls_directory.py +++ b/backend/app/schemas/souls_directory.py @@ -18,4 +18,3 @@ class SoulsDirectoryMarkdownResponse(BaseModel): handle: str slug: str content: str - diff --git a/backend/tests/test_souls_directory.py b/backend/tests/test_souls_directory.py index cb427285..f318a7be 100644 --- a/backend/tests/test_souls_directory.py +++ b/backend/tests/test_souls_directory.py @@ -26,4 +26,3 @@ def test_search_souls_matches_handle_or_slug() -> None: ] assert search_souls(refs, query="writer", limit=20) == [refs[1]] assert search_souls(refs, query="thedaviddias", limit=20) == [refs[0], refs[1]] -