Files
decomp.me/docs/VSCODE.md
Ethan Roseman 50a2b836b9 Migrate from poetry/black to uv/ruff (#1673)
* Migrate from poetry/black to uv/ruff

* fixes

* path change

* path pt 2

* ah

* mkst tweaks (#1674)

* mkst tweaks

* tweaks++

* doh

* tweak harder

---------

Co-authored-by: Mark Street <22226349+mkst@users.noreply.github.com>
2025-09-22 19:23:55 +09:00

17 lines
1.1 KiB
Markdown

### Configuring vscode for development
uv creates a virtual environment where packages for the site are installed. You can set your python interpreter path in vscode to use this virtual environment's interpreter, which will allow a much nicer backend development experience.
1. Inside the `backend/` directory, run `uv run which python` and copy the output path.
<img width="580" alt="image" src="https://user-images.githubusercontent.com/2985314/190146150-4ac8ecdd-dcfa-4e8e-a8b2-4913044aa088.png">
2. In vscode, open the command window (Ctrl+Shift+P on Windows, Cmd+Shift+P on MacOS) and type "Python: Select Interpreter" and choose the command as it appears.
<img width="454" alt="image" src="https://user-images.githubusercontent.com/2985314/190146241-9df7da65-9425-465c-9143-c7a8afeb4e53.png">
3. Click `Enter interpreter path...` and paste your copied path from before.
<img width="459" alt="image" src="https://user-images.githubusercontent.com/2985314/190146308-bd4559a8-8587-4896-93a2-64f48ff50b76.png">
<img width="449" alt="image" src="https://user-images.githubusercontent.com/2985314/190146714-b2feb535-d6cd-4113-a889-37cfaa65e7bb.png">