Skip to content

The agent that grows with you

refactor(hermes_cli/web_routers): drop post-docstring blank lines

Teknium7d60d28f410c
diff --git a/hermes_cli/web_routers/actions.py b/hermes_cli/web_routers/actions.py
index dca8bbd7b31..39e35f05f24 100644
--- a/hermes_cli/web_routers/actions.py
+++ b/hermes_cli/web_routers/actions.py
@@ -39,13 +39,11 @@ _ACTION_RESULTS = LateState("_ACTION_RESULTS")
def _action_log_dir() -> Path:
"""Live ``web_server._ACTION_LOG_DIR`` (a Path value, so not proxied by LateState)."""
from hermes_cli.web_server import _ACTION_LOG_DIR
-
return _ACTION_LOG_DIR
def _project_root() -> Path:
from hermes_cli.web_server import PROJECT_ROOT
-
return PROJECT_ROOT
diff --git a/hermes_cli/web_routers/audio.py b/hermes_cli/web_routers/audio.py
index db0337c4ebd..81ea6120e07 100644
--- a/hermes_cli/web_routers/audio.py
+++ b/hermes_cli/web_routers/audio.py
@@ -155,7 +155,6 @@ async def get_client_voice_config(profile: Optional[str] = None):
Gate: ``voice.client_direct`` in config.yaml (default true).
"""
from tools.voice_client_config import resolve_client_voice_config
-
try:
result = await _run_config_scoped(profile, resolve_client_voice_config)
except Exception:
@@ -323,7 +322,6 @@ async def tts_lease(payload: TTSLeaseRequest, profile: Optional[str] = None):
def _apply():
from tools.tts_tool import acquire_tts_lease, release_tts_lease
-
if payload.active:
with _config_profile_scope(profile):
return acquire_tts_lease(lease)
@@ -376,7 +374,6 @@ async def speak_stream_ws(ws: "WebSocket") -> None:
def _resolve():
from tools.tts_streaming import resolve_streaming_provider
from tools.tts_tool import _get_provider, _load_tts_config, _resolve_max_text_length
-
with _config_profile_scope(profile):
cfg = _load_tts_config()
streamer = resolve_streaming_provider(cfg)
diff --git a/hermes_cli/web_routers/config_env.py b/hermes_cli/web_routers/config_env.py
index c8367300340..58680188955 100644
--- a/hermes_cli/web_routers/config_env.py
+++ b/hermes_cli/web_routers/config_env.py
@@ -105,7 +105,6 @@ async def get_schema(profile: Optional[str] = None):
async def get_egress_status():
"""Dashboard/Desktop-readable egress proxy status and remediation text."""
from hermes_cli.proxy_cli import format_status_text
-
return {"text": format_status_text()}
diff --git a/hermes_cli/web_routers/memory_providers.py b/hermes_cli/web_routers/memory_providers.py
index a3e2568251b..ea327e748bb 100644
--- a/hermes_cli/web_routers/memory_providers.py
+++ b/hermes_cli/web_routers/memory_providers.py
@@ -124,7 +124,6 @@ def _read_flat_json(provider: ProviderConfigSchema) -> Dict[str, Any]:
def _honcho_resolvers():
"""Lazily import the Honcho plugin's resolvers (optional plugin)."""
from plugins.memory.honcho.client import _host_block, resolve_active_host, resolve_config_path
-
return resolve_active_host, resolve_config_path, _host_block