Skip to content

Commit ddcd3ad

Browse files
Ralph Agentclaude
andcommitted
✨ Move remaining inline imports to top of file in onboard.py
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5d882af commit ddcd3ad

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

onboard.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Interactive onboarding CLI for project setup."""
22

3+
import asyncio
4+
import os
35
import re
46
import shutil
57
import subprocess
@@ -13,6 +15,9 @@
1315
from rich.panel import Panel
1416
from rich.table import Table
1517

18+
from init.generate_banner import generate_banner as gen_banner
19+
from init.generate_logo import generate_logo as gen_logo
20+
1621
console = Console()
1722

1823
PROJECT_ROOT = Path(__file__).parent
@@ -439,8 +444,6 @@ def hooks() -> None:
439444

440445
def _check_gemini_key() -> bool:
441446
"""Check if GEMINI_API_KEY is available in .env or environment."""
442-
import os
443-
444447
if os.environ.get("GEMINI_API_KEY"):
445448
return True
446449
env_path = PROJECT_ROOT / ".env"
@@ -455,11 +458,6 @@ def _check_gemini_key() -> bool:
455458

456459
def _run_media_generation(choice: str, project_name: str, theme: str) -> list[str]:
457460
"""Run the selected media generation and return list of generated file paths."""
458-
import asyncio
459-
460-
from init.generate_banner import generate_banner as gen_banner
461-
from init.generate_logo import generate_logo as gen_logo
462-
463461
generated_files: list[str] = []
464462

465463
if choice in ("Banner only", "Both"):

0 commit comments

Comments
 (0)