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 2096de8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"python.pythonPath": "venv/bin/python3",
"python.defaultInterpreterPath": ".venv/bin/python3",
"python.testing.pytestEnabled": true,
"python.testing.autoTestDiscoverOnSaveEnabled": true
}
41 changes: 28 additions & 13 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
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 true --local",
"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"]
},
]
}
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2096de8

Please sign in to comment.