Skip to content

Commit 157fbd9

Browse files
Format
1 parent c8cbba6 commit 157fbd9

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

.devcontainer/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -160,22 +160,22 @@ Our devcontainer uses two key lifecycle commands optimized for prebuild:
160160
#### `onCreateCommand` (Container Creation)
161161
```bash
162162
# Creates Python virtual environment and registers Jupyter kernel
163-
echo '🚀 Creating Python virtual environment in workspace...' &&
164-
/usr/local/bin/python3.12 -m venv /workspaces/Apim-Samples/.venv --copies &&
165-
source /workspaces/Apim-Samples/.venv/bin/activate &&
166-
pip install --upgrade pip setuptools wheel ipykernel &&
163+
echo '🚀 Creating Python virtual environment in workspace...' &&
164+
/usr/local/bin/python3.12 -m venv /workspaces/Apim-Samples/.venv --copies &&
165+
source /workspaces/Apim-Samples/.venv/bin/activate &&
166+
pip install --upgrade pip setuptools wheel ipykernel &&
167167
python -m ipykernel install --user --name=apim-samples --display-name='APIM Samples Python 3.12'
168168
```
169169

170170
#### `updateContentCommand` (Content Updates)
171171
```bash
172172
# Installs Python packages and configures environment
173-
source /workspaces/Apim-Samples/.venv/bin/activate &&
174-
pip install -r requirements.txt &&
175-
pip install pytest pytest-cov coverage &&
176-
python setup/setup_python_path.py --generate-env &&
177-
az config set core.login_experience_v2=off &&
178-
az extension add --name containerapp --only-show-errors &&
173+
source /workspaces/Apim-Samples/.venv/bin/activate &&
174+
pip install -r requirements.txt &&
175+
pip install pytest pytest-cov coverage &&
176+
python setup/setup_python_path.py --generate-env &&
177+
az config set core.login_experience_v2=off &&
178+
az extension add --name containerapp --only-show-errors &&
179179
az extension add --name front-door --only-show-errors
180180
```
181181

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,4 @@
157157
"runArgs": [
158158
"--init"
159159
]
160-
}
160+
}

.devcontainer/post-start-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ echo " - Wait for all extensions to install"
7777
echo " --> ✅ (.venv) prefix will appear when you open a new terminal"
7878
echo ""
7979
echo " 3. Start using the infrastructures and samples!"
80-
echo " - You may initially need to select the kernel (top-right above the"
80+
echo " - You may initially need to select the kernel (top-right above the"
8181
echo " Jupyter notebook). If so, select the '.venv' Python environment."
8282
echo ""
8383
echo "============================================================================"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ python-dotenv
1616
# Dev tools for linting, formatting, testing, etc.
1717
pylint
1818
pytest
19-
pytest-cov
19+
pytest-cov

0 commit comments

Comments
 (0)