Skip to content

refactor: reorganize src/ for maintainability#64

Merged
SeanClay10 merged 7 commits into
mainfrom
refactor/repository-structure-57
May 13, 2026
Merged

refactor: reorganize src/ for maintainability#64
SeanClay10 merged 7 commits into
mainfrom
refactor/repository-structure-57

Conversation

@SeanClay10
Copy link
Copy Markdown
Collaborator

@SeanClay10 SeanClay10 commented May 13, 2026

Summary

  • Moves classify_extract.py and extract-from-txt.py into src/pipeline/, renaming the latter to extract_from_txt.py
  • Reorganizes src/ into four clearly bounded subdirectories: classifier/ (was model/), extraction/ (was llm/), io/ (was preprocessing/), and pipeline/ (new)
  • Removes requirements.txt and adds a [project] section to pyproject.toml as the single source of truth for dependencies — install with pip install -e ".[dev]"
  • Updates all internal imports, test mocks, script subprocess calls, CI workflow, CONTRIBUTING.md, and README.md to reflect the new structure
  • Add .env.example for Google Drive credentials

Closes #57

…e/, utils/ (#57)

- Move classify_extract.py and extract-from-txt.py into src/pipeline/
- Rename extract-from-txt.py to extract_from_txt.py (PEP 8)
- Reorganize src/ subdirectories: llm/ → extraction/, model/ → classifier/, preprocessing/ → io/
- Remove requirements.txt; add [project] section to pyproject.toml as single source of truth
- Add __init__.py files to all src packages
- Update all internal imports, CLI docstrings, test mocks, scripts, CI workflow, and CONTRIBUTING.md
@SeanClay10 SeanClay10 self-assigned this May 13, 2026
@SeanClay10
Copy link
Copy Markdown
Collaborator Author

@bradleyrule @bradleyrule @QuiteRocks ready for review whenever you are free!

Copy link
Copy Markdown
Collaborator

@raymondcen raymondcen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New directory looks great!

@SeanClay10 SeanClay10 merged commit baa340a into main May 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor Repository Structure for Maintainability

2 participants