refactor(hermes_cli): drop blank lines after in-body imports

This commit is contained in:
Teknium
2026-09-02 21:36:24 -07:00
parent ba11226d72
commit 52d8f0792c
4 changed files with 0 additions and 8 deletions
-3
View File
@@ -24,7 +24,6 @@ def _prompt_vercel_sandbox_settings(config: dict):
" Snapshots restore files only; live processes do not continue after sandbox recreation.")
from tools.terminal_tool import _SUPPORTED_VERCEL_RUNTIMES
current_runtime = terminal.get("vercel_runtime") or "node24"
supported_label = ", ".join(_SUPPORTED_VERCEL_RUNTIMES)
runtime = _setup.prompt(f" Runtime ({supported_label})", current_runtime).strip() or current_runtime
@@ -101,7 +100,6 @@ def _pip_install_vercel(package):
bootstrapping mid-wizard is fine), else pip — a `uv venv` venv may not even have pip."""
import subprocess
from hermes_cli.managed_uv import ensure_uv
uv_bin = ensure_uv()
cmd = ([uv_bin, "pip", "install", "--python", sys.executable, package] if uv_bin
else [sys.executable, "-m", "pip", "install", package])
@@ -175,7 +173,6 @@ def _setup_backend_modal(config: dict) -> None:
_setup.print_info("Serverless cloud sandboxes. Each session gets its own container.")
from tools.managed_tool_gateway import is_managed_tool_gateway_ready
from tools.tool_backend_helpers import normalize_modal_mode
managed_modal_available = bool(
_setup.managed_nous_tools_enabled()
and _setup.get_nous_subscription_features(config).nous_auth_present
-3
View File
@@ -175,7 +175,6 @@ def _lines(*lines: str) -> None:
def _save_optional(key: str, value: Optional[str], current: Optional[str]) -> None:
from hermes_cli.config import save_env_value
if value:
save_env_value(key, value)
print(f" ✓ Saved: {value}")
@@ -244,7 +243,6 @@ _OPTIONAL_ID_STEPS = (
def _credential_step(step) -> tuple[Optional[str], bool]:
"""Run one _CREDENTIAL_STEPS entry. Returns (effective value, abort)."""
from hermes_cli.config import get_env_value, save_env_value
title, env_var, label, validator, secret, preview, saved, kept, missing, required, help_text = step
_header(title)
current = get_env_value(env_var) or None
@@ -271,7 +269,6 @@ def run_whatsapp_cloud_setup() -> int:
user bailed before finishing).
"""
from hermes_cli.config import get_env_value, save_env_value
_lines(
"", "⚕ WhatsApp Business Cloud API Setup", "=" * 50, "",
"This wizard configures Hermes to talk to WhatsApp via Meta's",
-1
View File
@@ -87,7 +87,6 @@ def _default_windows_editor() -> str:
window closes). The bare name keeps prompt_toolkit's shlex split away from paths with spaces;
"" when even notepad is missing (WinPE, Nano Server) so prompt_toolkit's no-op applies."""
import shutil
return "notepad" if shutil.which("notepad") else ""
-1
View File
@@ -29,7 +29,6 @@ _SANITIZE_RE = re.compile(r"[^A-Za-z0-9._-]")
def _breadcrumbs_dir() -> Path:
from hermes_constants import get_hermes_home
return get_hermes_home() / "terminal-sessions"