53 lines
1.3 KiB
JSON
53 lines
1.3 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Format and lint",
|
|
"type": "shell",
|
|
"command": "source .env/bin/activate && scripts/format-python.sh great_ai docs tests",
|
|
"windows": {
|
|
"command": ".env\\bin\\activate.bat; scripts\\format-python.sh great_ai docs tests"
|
|
},
|
|
"group": "test",
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "new"
|
|
},
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
}
|
|
},
|
|
{
|
|
"label": "Test (quick)",
|
|
"type": "shell",
|
|
"command": "source .env/bin/activate && python3 -m pytest . --doctest-modules --asyncio-mode=strict",
|
|
"windows": {
|
|
"command": ".env\\bin\\activate.bat; python3 -m pytest . --doctest-modules --asyncio-mode=strict"
|
|
},
|
|
"group": "test",
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "new"
|
|
},
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
}
|
|
},
|
|
{
|
|
"label": "Test (all Python versions)",
|
|
"type": "shell",
|
|
"command": "source .env/bin/activate && python3 -m tox",
|
|
"windows": {
|
|
"command": ".env\\bin\\activate.bat; python3 -m tox"
|
|
},
|
|
"group": "test",
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "new"
|
|
},
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
}
|
|
}
|
|
]
|
|
}
|