Fix blackbox dev server command and add repo-root instructions (#48)

fastapi[standard] extras aren't resolved at workspace level, so
`fastapi dev` fails without `--package blackbox`. Add working
commands for both repo root (uvicorn) and package directory (fastapi dev).
This commit is contained in:
Kevin Turcios 2026-04-29 04:18:39 -05:00 committed by GitHub
parent 6ddc97a575
commit eaa83207a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,9 +53,19 @@ src/blackbox/
## Development
From the repo root:
```bash
uv sync
uv run fastapi dev src/blackbox/dashboard/app.py # hot reload on :8000
uv run --package blackbox uvicorn blackbox.dashboard.app:app --reload # hot reload on :8000
uv run pytest packages/blackbox/tests/ -v
uv run ruff check packages/blackbox/
```
From `packages/blackbox/`:
```bash
uv run --package blackbox fastapi dev src/blackbox/dashboard/app.py # hot reload on :8000
uv run pytest tests/ -v
uv run ruff check src/ tests/
```