Skip to content

Commit

Permalink
Try to guard against venv not present
Browse files Browse the repository at this point in the history
  • Loading branch information
brabster committed Jan 5, 2024
1 parent c601948 commit 6cc4ea2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@
"version": "2.0.0",
"tasks": [
{
"label": "ensure_pip_version",
"label": "is_in_virtualenv",
"type": "shell",
"command": "pip install --upgrade pip"
"command": "if [ $(python -c 'import sys; print(sys.prefix != sys.base_prefix)') == 'False' ]; then echo 'Not in virtualenv, aborting'; exit(1); fi"
},
{
"label": "ensure_python_deps_updated",
"label": "ensure_pip_version",
"type": "shell",
"command": "pip install -U -r ${workspaceFolder}/requirements.txt"
"command": "pip install --upgrade pip",
"dependsOn": ["is_in_virtualenv"]
},
{
"label": "load_user_env",
"label": "ensure_python_deps_updated",
"type": "shell",
"command": ". ${workspaceFolder}/.env"
"command": "pip install -U -r ${workspaceFolder}/requirements.txt",
"dependsOn": ["is_in_virtualenv"]
},
{
"label": "ensure_dbt_packages_updated",
Expand Down

0 comments on commit 6cc4ea2

Please sign in to comment.