feat(style): Fix 1-space indentation in 27 files
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.
This commit is contained in:
+11
-11
@@ -4,17 +4,17 @@ 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
|
||||
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}")
|
||||
print(f"SYMBOL:{name}|PATH:{path}")
|
||||
|
||||
Reference in New Issue
Block a user