Add lint and test scripts

Signed-off-by: András Schmelczer <andras@schmelczer.dev>
This commit is contained in:
Andras Schmelczer 2022-04-06 17:21:05 +02:00
parent ecc66163dc
commit 1684515eab

37
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,37 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Format and lint Python",
"type": "shell",
"command": "source .env/bin/activate && scripts/format-python.sh good_ai && scripts/check-python.sh good_ai",
"windows": {
"command": ".env/bin/activate.bat; scripts/format-python.sh good_ai; scripts\\check-python.sh good_ai"
},
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
},
"options": {
"cwd": "${workspaceFolder}"
}
},
{
"label": "Test Python",
"type": "shell",
"command": "source .env/bin/activate && python3 -m pytest good_ai",
"windows": {
"command": ".env/bin/activate.bat; python3 -m pytest good_ai"
},
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
},
"options": {
"cwd": "${workspaceFolder}"
}
}
]
}