Skip to content

chore: remove stranded Python prototype files from src/ (#199) - #302

Open
tylrcc wants to merge 1 commit into
SourceXXL:mainfrom
tylrcc:fix/issue-199
Open

tylrcc wants to merge 1 commit into
SourceXXL:mainfrom
tylrcc:fix/issue-199

Conversation

@tylrcc

@tylrcc tylrcc commented Nov 11, 2026

Copy link
Copy Markdown

Closes #199 — removes the stranded Python/FastAPI prototype from src/, the last unchecked cleanup item in ALIAN_AUDIT.md §6.

What changed

Deleted (nothing else touched):

  • src/main.py (FastAPI app with placeholder routes)
  • src/api/portfolio.py (in-memory portfolio CRUD router, hardcoded 1.0 pricing)
  • src/models/portfolio.py (pydantic models)

The now-empty src/api/ and src/models/ directories go with them.

Why it's safe

  • The prototype is imported by nothing: grepped the full repo — no references to these files/modules in the TypeScript sources, package.json, Dockerfile, docker-compose.yml, or GitHub workflows, and there is no Python tooling config (pyproject.toml / setup.py / Pipfile / tox.ini) anywhere.
  • Nothing else in the repo is Python: the remaining Python surface is the generated OpenAPI client (openapi:client:python → sdks/python), which is unrelated to src/.

requirements.txt — deliberately left unchanged

The issue's acceptance list says it "can be revised or removed if no longer needed." fastapi/uvicorn in it are this prototype's own dependencies, so with the prototype gone they serve nothing — but rather than unilaterally deleting a file other tooling might read, I left it untouched. Say the word and I'll remove it (or trim those two lines) in this PR.

Verification

  • npx tsc --noEmit → passes (exit 0).
  • npm test (full jest suite) → 99/108 suites pass (1218/1233 tests). The 9 failing suites — core/auth/{challenge,enhanced-auth,enhanced-auth.credentials}, rate-limiting/{guard,middleware,service}, dashboard/websocket/websocket.stress, infrastructure/file-upload/storage/azure-blob-storage.backend, common/utils/random-id — fail identically on unmodified main in this environment (verified by running those exact 9 suites against a clean main checkout; the Azure suite needs cloud credentials and the rate-limit/websocket ones are timing-sensitive). This diff touches no TypeScript, so it cannot affect them either way.

Delete src/main.py, src/api/portfolio.py and src/models/portfolio.py — a FastAPI stub (in-memory portfolio CRUD + placeholder pricing) that nothing imports: verified no references in the TypeScript sources, package.json, Dockerfile, docker-compose.yml or GitHub workflows, and no Python tooling config (pyproject.toml/setup.py/Pipfile/tox.ini) exists in the repo.

requirements.txt is intentionally left unchanged: fastapi/uvicorn are the stranded prototype's own dependencies, and the only other Python surface in the repo is the generated OpenAPI client (package.json openapi:client:python -> sdks/python), which is unrelated to src/. Removing those two lines is a one-line follow-up if you want it gone too — happy to add it here on request.

Verified: npx tsc --noEmit passes; full jest suite 99/108 suites pass, and the 9 failing suites (auth, rate-limiting, websocket stress, azure-blob storage, random-id) fail identically on unmodified main in this environment.
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.

Remove stray Python files from src/ — main.py, api/portfolio.py, models/portfolio.py

1 participant