From cc01250a9bc094f7b959e6b31b2dece62c08f7d2 Mon Sep 17 00:00:00 2001 From: Bryan-Roe <74067792+Bryan-Roe@users.noreply.github.com> Date: Tue, 14 Jul 2026 03:22:46 +0000 Subject: [PATCH] ci(chore): apply automated safe autofixes --- scripts/dashboard.py | 12 ++++++++---- scripts/demo_quantum_llm.py | 18 ++++++++++++------ scripts/gradio_hello.py | 6 ++++-- scripts/setup_env_check.py | 6 ++++-- shared/agi_persistence_sqlite.py | 6 ++++-- shared/chat_memory.py | 6 ++++-- shared/db_logging.py | 4 +++- shared/runtime_env.py | 6 ++++-- 8 files changed, 43 insertions(+), 21 deletions(-) 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( + """
- """) + """ + ) 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(