31a8949d64
Files corrected: - src/fuzzy_anchor.py (18 violations) - src/patch_modal.py (14 violations) - scripts/extract_symbols.py (4 violations) - scripts/tasks/download_fonts.py (8 violations) - tests/: 23 files with indentation issues All files verified with py_compile. Remaining 4 files (test_api_events.py, test_discussion_takes_gui.py, test_gui_updates.py, test_headless_service.py) have complex multi-line with statements that require manual correction.
21 lines
527 B
Python
21 lines
527 B
Python
import ast
|
|
import os
|
|
from pathlib import Path
|
|
|
|
symbols = []
|
|
for root in ['src', 'simulation']:
|
|
for p in Path(root).rglob('*.py'):
|
|
try:
|
|
code = p.read_text(encoding='utf-8')
|
|
tree = ast.parse(code)
|
|
for node in tree.body:
|
|
if isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef, ast.ClassDef)):
|
|
if not node.name.startswith('_'):
|
|
symbols.append((node.name, str(p)))
|
|
except Exception:
|
|
continue
|
|
|
|
print(f"TOTAL_SYMBOLS:{len(symbols)}")
|
|
for name, path in symbols:
|
|
print(f"SYMBOL:{name}|PATH:{path}")
|