Skip to content

Commit

Permalink
update vscode task that build project
Browse files Browse the repository at this point in the history
  • Loading branch information
ikheifets-splunk committed Sep 27, 2023
1 parent 3596cee commit ed862cf
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
@@ -1,5 +1,5 @@
{
"python.pythonPath": "venv/bin/python3",
"python.pythonPath": ".venv/bin/python3",
"python.testing.pytestEnabled": true,
"python.testing.autoTestDiscoverOnSaveEnabled": true
}
41 changes: 28 additions & 13 deletions .vscode/tasks.json
Expand Up @@ -4,30 +4,45 @@
"version": "2.0.0",
"tasks": [
{
"label": "Setup step 1: python venv",
"label": "Step 1: Install poetry",
"type": "shell",
"command": "python3 -m venv ./venv",
"windows": {
"command": "python venv"
},
"group": "Setup",
"command": "python3 -m pip install poetry",
"group": "build",
"presentation": {
"reveal": "always",
"panel": "new"
},
"runOptions": {
"runOn": "folderOpen"
}
},
{
"label": "Setup step 2: python requirements",
"label": "Step 2: Configure poetry",
"type": "shell",
"command": "pip3 install -r requirements.txt",
"windows": {
"command": "python requirements"
"command": "poetry config virtualenvs.in-project",
"group": "build",
"presentation": {
"reveal": "always",
"panel": "new"
},
"runOptions": {
"runOn": "folderOpen"
},
"group": "Setup",
"dependsOn": ["Step 1: Install poetry"]
},
{
"label": "Step 3: Install deps",
"type": "shell",
"command": "poetry install",
"group": "build",
"presentation": {
"reveal": "always",
"panel": "new"
}
}
},
"runOptions": {
"runOn": "folderOpen"
},
"dependsOn": ["Step 1: Install poetry", "Step 2: Configure poetry"]
},
]
}

0 comments on commit ed862cf

Please sign in to comment.