Refactor to Gold-RAP structure: src/ package, tests/, docs/, data/, output/
Chaeyoon+1: Claude Opus 4.8
84981a4
Structure
- Rename package noteguard/ -> src/; British spelling recognizers -> recognisers
(file, method, and all imports; Presidio's add_recognizer untouched).
- Streamlit app moved to repo root (streamlit_app.py); run_eval.py -> tests/.
- Generated artifacts now write to output/ (was data/out/).
Declutter
- Remove empty app/ and experiments/ dirs, the committed results.json, and the
stale docs/failed_experiments.md. Update docs/tool_card.md.
Gold RAP ("analysis as a product")
- pyproject.toml: pip-installable package + ruff/pytest config.
- CI (.github/workflows/ci.yml) runs ruff + pytest on push/PR.
- CHANGELOG.md; logging in the eval entry point.
Notes
- src/ stays one cohesive package (its modules import each other); evaluate.py is a
library used by both src/trust_demo.py and tests/run_eval.py, so both are kept.
Verified: pip install -e ".[dev]"; ruff clean; 23 tests pass; run_eval writes output/results.json.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>