🟠 Verify Workflow: Set Up Project
Verify that your Python Project is correctly set up and aligned with VS Code.
1. Use Machine Terminal to Open Project with code .
On your machine:
- Open a machine terminal.
- Navigate to your
Reposfolder. - Change directory (
cd) into your project repository folder. - Close VS Code if it is open.
- Open the project using:
code .
2. Verify uv and Python Environment
Open the VS Code terminal and run the following commands one at a time:
uv --version
uv run python --version
Verify
uv --versionprints a version numberuv run python --versionprints the Python version pinned for this project- No error messages appear
3. Verify Virtual Environment
Look at the VS Code Explorer (left panel). Verify:
- a
.venv/folder exists in the project root pyproject.tomlexists in the project root- .python-version exists
Click on a Python file (look in the src folder)
- Look at the right side of the VS Code status bar at the bottom of the window.
- Verify that VS Code shows
.venvas the selected Python interpreter.
If the interpreter is not correct:
- Open the Command Palette (with "View" / "Command Palette")
- Select Python: Select Interpreter
- Choose the interpreter inside this project's
.venvfolder - Reload VS Code (Developer: Reload Window)
Final Checklist
Your project setup is complete when all are true:
- [ ] VS Code was opened using
code . - [ ] VS Code Terminal opens in the project root folder
- [ ]
.venv/exists in the project - [ ]
uv run python --versionworks - [ ] the project
.venvappears in the bottom status bar when a .py file is selected
Congratulations - your project environment is ready for work!