mirror of
https://github.com/codeflash-ai/codeflash-agent.git
synced 2026-05-04 18:25:19 +00:00
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:
parent
6ddc97a575
commit
eaa83207a0
1 changed files with 11 additions and 1 deletions
|
|
@ -53,9 +53,19 @@ src/blackbox/
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
|
From the repo root:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
uv sync
|
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 pytest tests/ -v
|
||||||
uv run ruff check src/ tests/
|
uv run ruff check src/ tests/
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue