Skip to content

Commit 4256e83

Browse files
authored
♻️ Simplify uv workspace setup (#2423)
## AI Disclaimer Using Codex with gpt-5.6-sol. Reviewed manually.
1 parent 85cd14d commit 4256e83

3 files changed

Lines changed: 1 addition & 17 deletions

File tree

backend/README.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,7 @@ The API is available at `http://localhost:8000`, with automatic interactive docs
2727

2828
## General Workflow
2929

30-
By default, the dependencies are managed with [uv](https://docs.astral.sh/uv/), go there and install it.
31-
32-
From `./backend/` you can install all the dependencies with:
33-
34-
```console
35-
$ uv sync
36-
```
37-
38-
Then you can activate the virtual environment with:
39-
40-
```console
41-
$ source .venv/bin/activate
42-
```
43-
44-
Make sure your editor is using the correct Python virtual environment, with the interpreter at `backend/.venv/bin/python`.
30+
Run backend commands from `./backend/` with `uv run`. Make sure your editor uses the Python interpreter at `.venv/bin/python` in the project root.
4531

4632
Modify or add SQLModel models for data and SQL tables in `./backend/app/models.py`, API endpoints in `./backend/app/api/`, CRUD (Create, Read, Update, Delete) utils in `./backend/app/crud.py`.
4733

compose.override.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ services:
5353
action: sync
5454
target: /app/backend
5555
ignore:
56-
- ./backend/.venv
5756
- .venv
5857
- path: ./backend/pyproject.toml
5958
action: rebuild

frontend/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ Done, you have a frontend-less (api-only) app. 🤓
3939

4040
### Automatically
4141

42-
* Activate the backend virtual environment.
4342
* From the top level project directory, run the script:
4443

4544
```bash

0 commit comments

Comments
 (0)