From c2ac13fbc9d6c8200ca09cee2919444186670a3d Mon Sep 17 00:00:00 2001 From: Malcolm Nixon Date: Tue, 17 Nov 2026 01:38:54 -0500 Subject: [PATCH] Set up the Python venv with shell-neutral process tasks The previous Windows command used PowerShell-only syntax and a bare relative pip path. Two process tasks now create .venv and install pip-requirements.txt with the venv's python -m pip, independent of the configured shell. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .vscode/tasks.json | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index fc3b3d68..ccbe0f2d 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -99,14 +99,27 @@ "panel": "shared" } }, + { + "label": "create python venv", + "detail": "Creates .venv for the Python lint tools, as lint.ps1 and fix.ps1 do", + "type": "process", + "command": "python3", + "windows": { + "command": "python" + }, + "args": ["-m", "venv", ".venv"], + "problemMatcher": [] + }, { "label": "setup python venv", - "detail": "Creates .venv and installs pip-requirements.txt, as lint.ps1 and fix.ps1 do", - "type": "shell", - "command": "python3 -m venv .venv && .venv/bin/pip install -r pip-requirements.txt --quiet --disable-pip-version-check", + "detail": "Installs pip-requirements.txt into .venv, as lint.ps1 and fix.ps1 do", + "dependsOn": "create python venv", + "type": "process", + "command": "${workspaceFolder}/.venv/bin/python", "windows": { - "command": "python -m venv .venv; if ($?) { .venv\\Scripts\\pip install -r pip-requirements.txt --quiet --disable-pip-version-check }" + "command": "${workspaceFolder}\\.venv\\Scripts\\python.exe" }, + "args": ["-m", "pip", "install", "-r", "pip-requirements.txt", "--quiet", "--disable-pip-version-check"], "problemMatcher": [] }, {