93 lines
2.4 KiB
JSON
93 lines
2.4 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Activate Conda Environment",
|
|
"type": "shell",
|
|
"command": "conda",
|
|
"args": [
|
|
"activate",
|
|
"pyth-311"
|
|
],
|
|
"group": "build",
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "shared"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Install Dependencies",
|
|
"type": "shell",
|
|
"command": "pip",
|
|
"args": [
|
|
"install",
|
|
"-r",
|
|
"requirements.txt"
|
|
],
|
|
"group": "build",
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "shared"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Database Migration",
|
|
"type": "shell",
|
|
"command": "alembic",
|
|
"args": [
|
|
"upgrade",
|
|
"head"
|
|
],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/app"
|
|
},
|
|
"group": "build",
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "shared"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Run Tests",
|
|
"type": "shell",
|
|
"command": "pytest",
|
|
"args": [
|
|
"-v",
|
|
"tests/"
|
|
],
|
|
"group": "test",
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "shared"
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Verify Environment",
|
|
"type": "shell",
|
|
"command": "python",
|
|
"args": [
|
|
"verify_env.py"
|
|
],
|
|
"group": "build",
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "shared"
|
|
},
|
|
"problemMatcher": []
|
|
}
|
|
]
|
|
} |