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": [] }, {