Repository navigation
v0.6 — Desloppify: Code Health Campaign
🧹 Code Health: Desloppify Campaign
The largest code-quality improvement cycle since the template's inception. 162 commits across 948 files, systematically eliminating technical debt from all 8 infrastructure packages through 26 rounds of blind review.
Fixes
- Import hygiene — Removed unused imports across 20+ files; eliminated
sys.pathmutations from CLI modules; properTYPE_CHECKINGguards throughout - Exception handling — Narrowed broad
except Exception/ bareexceptclauses inintegrity.py,logging_utils,config_loader, andllmmodules; fixed silentJSONDecodeErrorswallowing; restored exception context withraise ... from exc - Dead code removal — Deleted orphaned
coverage_reporter.py(zero importers); removed stub/passthrough wrapper methods across 10+ modules; eliminated dead HTML-entities dict fromInputSanitizer - Type annotations — Modernised legacy
typingimports (List[x]→list[x],Optional[x]→x | None) across 30+ modules; addedTypedDictreturns for integrity results; annotated CLI re-exports - API surface — Consolidated
LLMConfigenv-read wrappers (ABS-001); merged duplicatePerformanceMetricsnaming conflict; removedProjectLoggerpure-forwarder abstraction; eliminatedcalculate_file_hashre-export from publishing boundary - Bug fixes — Fixed inverted
scan_errorsbool in doc scanner; fixed stall-detection dead branch in pipeline reporter; fixedconfig_filespath bug inconfig_cli; fixedclean_output_directoryreturn type; fixed broken accessor imports aftercore.pyhub elimination - Structural — Eliminated
infrastructure/core/core.pyhub; extracted_build_stage_listto remove stage-list duplication; movedMultiProjectResulttoTYPE_CHECKINGto breakreporting→corecircular dependency - Logging — Removed noisy debug logs from LLM and environment modules; downgraded verbose entry logs; added
get_loggerto logic modules lacking structured logging - Docstrings — Stripped AI-generated boilerplate from 40+ functions; removed restating comments and banner comments
- Tests — Fixed test name collisions; added deterministic tests for
validate_review_qualityand exception types; added integration tests totestpaths; removed orphan test files - Dependencies — Removed
scipyfrom infrastructure env check; resolved stalepsutilguards; movedmatplotlibto optional dep group
Quality Gates
| Gate | Status |
|---|---|
| Desloppify blind reviews | 26 rounds |
| Commits | 162 |
| Files changed | 948 |
ruff check |
✅ 0 errors |
mypy --strict |
✅ 0 errors (all 8 packages) |
bandit -ll |
✅ 0 MEDIUM+ findings |
pip-audit |
✅ Blocking gate |
pytest |
✅ All pass |
Documentation
- Updated
CHANGELOG.mdwith full v0.6.0 entry - Updated
docs/development/roadmap.mdwith desloppify results and refreshed quality metrics - Updated
docs/audit/documentation-review-report.mdfor v0.6 scope
See CHANGELOG.md for full details.