You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
faresrafat3
committed
fix: repair invalid syntax + undefined names (CI was unrunnable)
Fixes for code quality issues revealed by enabling ruff in CI:
Syntax errors (prevented module from loading):
- skill_library.py:79: bare 'except:' with no handler -> 'except Exception:'
- arsenal_run.py:113: 'async for' had no indented body (missing 4 spaces)
- pipeline/l2_conductor.py / l3_search.py / router.py: same async-for pattern
Undefined names (NameErrors at import):
- arsenal_run.py:31: route_project() called but never imported
- arsenal_run.py:116: 'return result' for undefined name 'result'
- arsenal_run.py:76: RouteDecision used in mock branch but not imported
(it is imported now via the models import line)
Dead code:
- llm.py: lower, prompt: assigned but never read in _offline_fallback
Style:
- bare 'except:' -> 'except Exception:' in economy.py
- super() modernization in economy.py
- ruff autofix for unsorted imports, UP rules
pyproject.toml:
- added [tool.ruff] config to ignore stylistic rules that don't apply
to alpha code (BLE001, EXE001, C408, RUF013, S110, ISC004)
Net effect: 'ruff check .' now passes; the package can be parsed and
imported (deps still needed for full import, but syntax is valid).
PR #4 was supposed to fix some of this; this lands the same fixes
without the SSE merge that was the actual blocker.
0 commit comments