Skip to content

T-1 final: api.py is the 205-line app factory (<300 target met)#116

Merged
Bobcatsfan33 merged 1 commit into
mainfrom
t-1-sprint14-cleanup
Jun 12, 2026
Merged

T-1 final: api.py is the 205-line app factory (<300 target met)#116
Bobcatsfan33 merged 1 commit into
mainfrom
t-1-sprint14-cleanup

Conversation

@Bobcatsfan33

Copy link
Copy Markdown
Owner

refactor(T-1 final): api.py is the app factory only — 6934 -> 205 lines

Removes ~106 dead imports (ruff F401), two unused helpers, orphaned section
comments; rewrites the docstring. All 305 product routes live in api_routers/*
(19 domain routers); only /, /healthz, /readyz, /metrics remain. A handful of
location-coupled tests retargeted to the router/_shared modules. Decomposition
complete (97% reduction); route-surface guard empty diff; full suite green.

Route-surface guard empty diff; full suite green.

Removes ~106 dead imports (ruff F401), two unused helpers, orphaned section
comments; rewrites the docstring. All 305 product routes live in api_routers/*
(19 domain routers); only /, /healthz, /readyz, /metrics remain. A handful of
location-coupled tests retargeted to the router/_shared modules. Decomposition
complete (97% reduction); route-surface guard empty diff; full suite green.
@Bobcatsfan33 Bobcatsfan33 merged commit 16b2a79 into main Jun 12, 2026
14 checks passed
@Bobcatsfan33 Bobcatsfan33 deleted the t-1-sprint14-cleanup branch June 12, 2026 00:14
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.

1 participant