Skip to content

Commit 0d2132a

Browse files
Merge pull request #935 from microsoft/dependabotFix-az
fix: Enhance setup scripts to include '--extra dev' for dependency install
2 parents ccd3359 + 62e873d commit 0d2132a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.devcontainer/setupEnv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -e
88

99
echo "Setting up Backend..."
1010
cd ./src/backend
11-
uv sync --frozen
11+
uv sync --frozen --extra dev
1212
cd ../../
1313

1414
echo "Setting up Frontend..."

docs/LocalDevelopmentSetup.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ source .venv/bin/activate # Linux/WSL2
363363
# or
364364
.\.venv\Scripts\Activate.ps1 # Windows PowerShell
365365

366-
# Install dependencies
367-
uv sync --python 3.12
366+
# Install dependencies (--extra dev includes pytest for testing)
367+
uv sync --python 3.12 --extra dev
368368
```
369369

370370
**Windows users**: If you encounter issues with the `uv` command not being found, use the Python Launcher instead:
@@ -373,11 +373,11 @@ uv sync --python 3.12
373373
# Create virtual environment
374374
py -3.12 -m uv venv .venv
375375
376-
# Install dependencies
377-
py -3.12 -m uv sync
376+
# Install dependencies (--extra dev includes pytest for testing)
377+
py -3.12 -m uv sync --extra dev
378378
```
379379

380-
> **⚠️ Important**: Always run `uv sync` (or `py -3.12 -m uv sync` on Windows) after creating the virtual environment to install all required dependencies. Missing dependencies will cause runtime errors like `ModuleNotFoundError: No module named 'pydantic'` or DNS resolution failures.
380+
> **⚠️ Important**: Always run `uv sync --extra dev` (or `py -3.12 -m uv sync --extra dev` on Windows) after creating the virtual environment to install all required dependencies. Missing dependencies will cause runtime errors like `ModuleNotFoundError: No module named 'pydantic'` or DNS resolution failures.
381381
382382
### 4.4. Run the Backend
383383

0 commit comments

Comments
 (0)