Skip to content

Commit 56183f0

Browse files
committed
Simplify pyproject (remove start-api)
1 parent 85eeb6a commit 56183f0

File tree

5 files changed

+4
-8
lines changed

5 files changed

+4
-8
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"src/python_template/api/main.py"
1212
],
1313
"console": "integratedTerminal",
14-
"justMyCode": false,
14+
"justMyCode": false
1515
}
1616
]
1717
}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
"notebook.codeActionsOnSave": {
2424
"notebook.source.fixAll": "explicit",
2525
"notebook.source.organizeImports": "explicit"
26-
},
26+
}
2727
}

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ Project template for Python projects + uv + Vertical Slice Architecture
88
docker compose --file docker-compose-dev.yaml up --detach
99
```
1010

11-
```bash
12-
uv run -- poe start-api-dev
13-
```
11+
**Visual Studio Code -> Run and Debug -> api** (or `uv run -- fastapi dev src/python_template/api/main.py`)
1412

1513
```bash
1614
docker compose --file docker-compose-dev.yaml down --volumes

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,3 @@ asyncio_default_fixture_loop_scope = "function"
5858

5959
[tool.poe.tasks]
6060
check-code.shell = "ruff check && ruff format --diff && pyright"
61-
start-api-dev = "fastapi dev src/template/api/main.py"
62-
start-api-pro.shell = "workers=$(nproc) && fastapi run --workers $workers src/template/api/main.py"

src/python_template/api/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ COPY --from=builder --chown=app /app /app
2323
WORKDIR /app
2424
EXPOSE 8000
2525
USER app
26-
CMD [".venv/bin/poe", "start-api-pro"]
26+
CMD [".venv/bin/fastapi", "run", "src/python_template/api/main.py"]

0 commit comments

Comments
 (0)