diff --git a/scripts/dashboard.py b/scripts/dashboard.py index bdf8dc901..66f52cf9a 100644 --- a/scripts/dashboard.py +++ b/scripts/dashboard.py @@ -164,7 +164,8 @@ def print_architecture(): """Display system architecture.""" print("šŸ—ļø Aria Platform Architecture") print() - print(""" + print( + """ Frontend Layer: ā”œā”€ Aria Web UI (http://localhost:8080) │ └─ Interactive 3D character with voice/text I/O @@ -203,7 +204,8 @@ def print_architecture(): ā”œā”€ Logs: data_out/*/ ā”œā”€ Config: config/ └─ Monitoring: status.json files - """) + """ + ) def main(): @@ -225,7 +227,8 @@ def main(): print_architecture() print_header("Next Steps") - print(""" + print( + """ 1ļøāƒ£ START BACKEND SERVICES $ func host start # Start Azure Functions on port 7071 $ cd apps/aria && python server.py # Start Aria server on port 8080 @@ -249,7 +252,8 @@ def main(): • AUTONOMOUS_TRAINING_REPORT.md — Detailed training analysis • ARIA_QUICKREF.txt — Quick reference guide • .github/copilot-instructions.md — Complete architecture docs - """) + """ + ) print("=" * 70 + "\n") diff --git a/scripts/demo_quantum_llm.py b/scripts/demo_quantum_llm.py index 99a56de55..8d5c7ecd0 100644 --- a/scripts/demo_quantum_llm.py +++ b/scripts/demo_quantum_llm.py @@ -95,7 +95,8 @@ def demonstrate_quantum_llm_integration(): # 4. Show workflow print("\n\nšŸ”„ Training Workflow:") print("-" * 80) - print(""" + print( + """ Autonomous Training Cycle (every 30 minutes): ā”œā”€ā”€ 1. Discover datasets (quantum, chat, vision) ā”œā”€ā”€ 2. Download new datasets if needed @@ -121,12 +122,14 @@ def demonstrate_quantum_llm_integration(): - Quantum feature encoding for richer representations - Hybrid quantum-classical architecture - Cost-aware execution (local simulator vs Azure Quantum) - """) + """ + ) # 5. Show command examples print("\nšŸ“ Usage Examples:") print("-" * 80) - print(""" + print( + """ # Active Training (single run) python scripts/quantum_llm_trainer.py \\ --dataset datasets/chat/aria_chat \\ @@ -147,12 +150,14 @@ def demonstrate_quantum_llm_integration(): # Full Repository Automation python scripts/repo_automation.py --start # (Includes quantum LLM training in the full automation suite) - """) + """ + ) # 6. Show benefits print("\n\n✨ Key Benefits:") print("-" * 80) - print(""" + print( + """ 1. Quantum Advantage: - Exponential feature space (2^n for n qubits) - Novel attention optimization patterns @@ -177,7 +182,8 @@ def demonstrate_quantum_llm_integration(): - Track quantum circuit executions - Monitor quantum advantage ratio - Detailed metrics and logging - """) + """ + ) # 7. Show status print("\n\nšŸ“Š Current Status:") diff --git a/scripts/gradio_hello.py b/scripts/gradio_hello.py index a70e2f793..2be102ba8 100644 --- a/scripts/gradio_hello.py +++ b/scripts/gradio_hello.py @@ -1043,7 +1043,8 @@ def run_llm_smoke_test( with gr.Blocks() as demo: with gr.Column(elem_id="appCard"): - gr.HTML(""" + gr.HTML( + """
🌿 @@ -1059,7 +1060,8 @@ def run_llm_smoke_test( šŸŽ™ļø TTS support
- """) + """ + ) with gr.Row(equal_height=False): with gr.Column(scale=7, elem_id="surfaceBlock", elem_classes=["surface-card"]): diff --git a/scripts/setup_env_check.py b/scripts/setup_env_check.py index 7553ee0ff..08d57235e 100644 --- a/scripts/setup_env_check.py +++ b/scripts/setup_env_check.py @@ -352,7 +352,8 @@ def print_next_steps() -> None: """Print recommended next steps.""" print_section("Next Steps") - print(f""" + print( + f""" {BOLD}1. Start Services:{RESET} • Ollama: ollama serve • LM Studio: lm-studio (GUI application) @@ -376,7 +377,8 @@ def print_next_steps() -> None: • Quick start: cat QUICK_START_AUTOMATION.md • Automation: cat AUTOMATION_RUNNER.md • Watch status: python3 scripts/watch_continuous_automation.py -""") +""" + ) def main() -> int: diff --git a/shared/agi_persistence_sqlite.py b/shared/agi_persistence_sqlite.py index c815b51ff..4a21f985b 100644 --- a/shared/agi_persistence_sqlite.py +++ b/shared/agi_persistence_sqlite.py @@ -34,7 +34,8 @@ def __init__(self, path: str) -> None: self._conn.execute("PRAGMA synchronous=NORMAL;") except Exception: pass - self._conn.execute(""" + self._conn.execute( + """ CREATE TABLE IF NOT EXISTS agi_events ( id TEXT PRIMARY KEY, ts REAL, @@ -42,7 +43,8 @@ def __init__(self, path: str) -> None: meta TEXT, payload TEXT ) - """) + """ + ) self._conn.commit() def write_reasoning_chain(self, chain: list[dict[str, Any]], meta: dict[str, Any] | None = None) -> str: diff --git a/shared/chat_memory.py b/shared/chat_memory.py index 29b9ac6aa..0df33285b 100644 --- a/shared/chat_memory.py +++ b/shared/chat_memory.py @@ -377,7 +377,8 @@ def fetch_similar_messages( (scoped_session_id,), ) else: - cur.execute(""" + cur.execute( + """ SELECT e.message_id, e.embedding_vector, @@ -387,7 +388,8 @@ def fetch_similar_messages( FROM embeddings e LEFT JOIN chat_messages cm ON cm.message_id = e.message_id LEFT JOIN messages m ON m.message_id = e.message_id - """) + """ + ) rows = cur.fetchall() has_joined_metadata = True except Exception: diff --git a/shared/db_logging.py b/shared/db_logging.py index 007c2c897..3bf586a12 100644 --- a/shared/db_logging.py +++ b/shared/db_logging.py @@ -132,7 +132,9 @@ def _parse_quantum_summary() -> dict[str, Any]: return {} -def log_quantum_run_safe(job, result: dict[str, Any], dataset_name: str, log_path: str) -> dict[str, Any]: # noqa: ANN001 +def log_quantum_run_safe( + job, result: dict[str, Any], dataset_name: str, log_path: str +) -> dict[str, Any]: # noqa: ANN001 """Best-effort quantum run logging; returns a skip/error dict on failure.""" conn = _get_conn() if not conn: diff --git a/shared/runtime_env.py b/shared/runtime_env.py index 2b8873461..8991b6a01 100644 --- a/shared/runtime_env.py +++ b/shared/runtime_env.py @@ -71,7 +71,8 @@ def probe_python_packages( "error": f"Python executable not found: {python}", } - code = dedent(f""" + code = dedent( + f""" import importlib.metadata as md import importlib.util import json @@ -86,7 +87,8 @@ def probe_python_packages( vers[m] = None print(json.dumps({{'available': avail, 'versions': vers}})) - """).strip() + """ + ).strip() try: proc = subprocess.run(