Generated: 2024-10-04
Purpose: Document potentially unused files, large notebooks, and items for cleanup consideration
This inventory identifies files that may be candidates for removal, archiving, or relocation based on static analysis and repository structure review.
- Total Python files: 44
- Total test files: ~20
- Documentation files: 12
- Notebooks: 2
notebooks/pipeline_csv_to_parquet multifile.ipynb→notebooks/experiments/- Reason: Large experimental notebook (36KB) not referenced in main pipeline
- Status: Preserved in experiments directory for historical reference
- Action: MOVED (not deleted)
- Size: 714 bytes
- Purpose: Replit IDE configuration
- Recommendation: Keep if using Replit; consider adding to
.gitignoreif not needed in version control - Risk: Low - IDE-specific configuration
- Action: REVIEW
- Purpose: Both contain tool configuration (Black, isort, mypy, flake8)
- Observation: Configuration is split between two files
- Recommendation: Consider consolidating all tool config into
pyproject.toml(modern standard) - Action: CONSOLIDATE (optional optimization)
notebooks/pipeline_csv_to_parquet.ipynb(24KB)- Status: Active, referenced in documentation
- Action: KEEP
notebooks/experiments/pipeline_csv_to_parquet multifile.ipynb(36KB)- Status: Experimental, preserved for reference
- Action: ARCHIVED
All documentation files appear active and well-maintained:
- ✅
docs/ARCHITECTURE.md(20KB) - Core architecture documentation - ✅
docs/AI_ENGINES.md(24KB) - AI adapter documentation - ✅
docs/DATA_PIPELINE.md(19KB) - Data pipeline documentation - ✅
docs/VISUALIZATION.md(17KB) - Visualization documentation - ✅ Other docs: All appear referenced and active
Observation: docs/ARCHITECTURE_V2.md (1.7KB) is notably smaller than ARCHITECTURE.md (20KB)
- Recommendation: Verify if V2 is intended to replace or supplement ARCHITECTURE.md
- Action: REVIEW DOCUMENTATION STRATEGY
The following file is explicitly excluded from coverage and linting:
src/ai_service_old.py- Status: Listed in
.gitignore,pyproject.toml, andsetup.cfg - Issue: File reference exists but file not found in repository
- Recommendation: Remove references from config files since file doesn't exist
- Action: CLEANUP CONFIG
- Status: Listed in
- Unit tests:
tests/unit/- Well organized with 49 passing tests - Integration tests:
tests/integration/- Properly separated - New smoke test:
tests/test_smoke_app.py- Added for basic import validation
Current coverage is 75% for base adapter, with lower coverage for AI adapters (expected for integration code).
- ✅ COMPLETED: Move
pipeline_csv_to_parquet multifile.ipynbto experiments - ✅ COMPLETED: Add smoke test for app initialization
- TODO: Remove references to
src/ai_service_old.pyfrom config files
- Consider: Consolidate tool configuration into
pyproject.tomlonly - Review: Clarify relationship between
ARCHITECTURE.mdandARCHITECTURE_V2.md - Consider: Add
.replitto.gitignoreif not needed in version control
- Monitor: Track unused code with regular
vultureruns (tool added inscripts/report_unused.sh) - Consider: Create
notebooks/README.mdto document purpose of each notebook
The scripts/report_unused.sh script has been added to help identify:
- Unused Python functions and classes (via vulture)
- Code with zero coverage (via pytest-cov)
- Import patterns that may indicate dead code
Run periodically with:
bash scripts/report_unused.shOverall Risk: LOW
- All changes are non-destructive
- Experimental notebook preserved (moved, not deleted)
- No production code removed
- Smoke test added for safety
Rollback: Simple - revert the branch; all moved files can be restored from git history.
This inventory is a living document. As the codebase evolves:
- Run
scripts/report_unused.shperiodically - Update this inventory when making structural changes
- Review archived notebooks annually for potential deletion
- Keep test coverage high to identify truly unused code