Private
Public Access
0
0

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:
2026-05-16 03:00:20 -04:00
parent 9d40fec46e
commit 31a8949d64
29 changed files with 1580 additions and 1611 deletions
@@ -3,49 +3,45 @@
## Phase 1: Audit and Classification
Focus: Identify all files requiring indentation correction
- [ ] Task 1.1: Create indentation audit script to scan all Python files
- [x] Task 1.1: Create AST-based indentation audit script
- File: `scripts/audit_indentation.py`
- Detect: Lines with leading whitespace that is not a multiple of 1 space
- Output: List of files with line numbers and current indentation level
- [ ] Task 1.2: Run audit against src/ directory (51 files)
- File: src/
- Categorize: Files with 0 issues, 1-10 issues, 10+ issues
- [ ] Task 1.3: Run audit against tests/ directory
- File: tests/
- [ ] Task 1.4: Run audit against scripts/ directory
- File: scripts/
- [ ] Task 1.5: Run audit against conductor/ directory
- File: conductor/
- Method: Use Python AST to track logical nesting depth
- Output: Files with actual violations (not docstring false positives)
- [x] Task 1.2: Run audit across all directories
- Result: 32 files with violations, 189 total violations
## Phase 2: Correct Indentation - src/ Files
Focus: Fix identified files in src/ (in order of severity)
Focus: Fix identified files in src/ (2 files)
- [ ] Task 2.1: Fix src/ files with 1-10 indentation issues
- [ ] Task 2.2: Fix src/ files with 10+ indentation issues
- [ ] Task 2.3: Verify syntax after each file fix
- [ ] Task 2.1: Fix src/fuzzy_anchor.py (18 violations)
- [ ] Task 2.2: Fix src/patch_modal.py (14 violations)
- [ ] Task 2.3: Verify syntax after each fix
- [ ] Task 2.4: Commit each file individually
## Phase 3: Correct Indentation - tests/ Files
Focus: Fix identified files in tests/
## Phase 3: Correct Indentation - scripts/ Files
Focus: Fix identified files in scripts/ (2 files)
- [ ] Task 3.1: Fix tests/ files with indentation issues
- [ ] Task 3.2: Verify syntax after each file fix
- [ ] Task 3.3: Commit each file individually
- [ ] Task 3.1: Fix scripts/extract_symbols.py (4 violations)
- [ ] Task 3.2: Fix scripts/tasks/download_fonts.py (8 violations)
- [ ] Task 3.3: Verify syntax after each fix
- [ ] Task 3.4: Commit each file individually
## Phase 4: Correct Indentation - scripts/ Files
Focus: Fix identified files in scripts/
## Phase 4: Correct Indentation - tests/ Files
Focus: Fix identified files in tests/ (28 files)
- [ ] Task 4.1: Fix scripts/ files with indentation issues
- [ ] Task 4.2: Verify syntax after each file fix
- [ ] Task 4.3: Commit each file individually
- [ ] Task 4.1: Fix tests/test_arch_boundary_phase1.py (9 violations)
- [ ] Task 4.2: Fix tests/test_arch_boundary_phase2.py (16 violations)
- [ ] Task 4.3: Fix tests/test_arch_boundary_phase3.py (7 violations)
- [ ] Task 4.4: Fix tests/test_external_editor.py (18 violations)
- [ ] Task 4.5: Fix tests/test_headless_service.py (19 violations)
- [ ] Task 4.6: Fix remaining tests/ files (22 files with fewer violations)
- [ ] Task 4.7: Verify syntax after each fix
- [ ] Task 4.8: Commit each file individually
## Phase 5: Correct Indentation - conductor/ Files
Focus: Fix identified files in conductor/
## Phase 5: Final Verification
Focus: Ensure no regressions
- [ ] Task 5.1: Fix conductor/ Python files with indentation issues
- [ ] Task 5.2: Verify syntax after each file fix
- [ ] Task 5.3: Commit each file individually
- [ ] Task 5.1: Re-run audit to confirm 0 violations
- [ ] Task 5.2: Run pytest --collect-only to verify syntax
- [ ] Task 5.3: Create checkpoint commit