Skip to content

🐛 Improve monorepo application discovery#90

Merged
savannahostrowski merged 4 commits intomainfrom
app-discovery-fix
Feb 28, 2026
Merged

🐛 Improve monorepo application discovery#90
savannahostrowski merged 4 commits intomainfrom
app-discovery-fix

Conversation

@savannahostrowski
Copy link
Member

Closes #89

So, previously, there were two issues that meant that we weren't properly finding all routes in monorepos:

  • We only looked in the workspace root for a pyproject.toml when checking for a configured [tool.fastapi] entrypoint — now we search all pyproject.toml files in the workspace, prioritizing the shallowest one with an entrypoint configured

  • When no __init__.py was found in the entry file's directory, we returned early and treated that directory as the project root. This broke namespace packages (PEP 420), which don't use __init__.py. Now we walk up to find a pyproject.toml to anchor the project root instead (this is what directly addresses Cannot find routes in monorepo #89)

@savannahostrowski savannahostrowski added the bug Something isn't working label Feb 27, 2026
@savannahostrowski savannahostrowski merged commit b82b267 into main Feb 28, 2026
5 checks passed
@savannahostrowski savannahostrowski deleted the app-discovery-fix branch February 28, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot find routes in monorepo

1 participant