{ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "label": "Python: Build cookidoo-api package", "type": "shell", "command": "scripts/run-in-env.sh pip install -e .", "problemMatcher": [], "group": { "kind": "build" }, "presentation": { "focus": true, "reveal": "always" }, "options": { "cwd": "${workspaceFolder}" } }, { "label": "mkdocs: serve", "type": "shell", "command": "mkdocs serve", "problemMatcher": [], "presentation": { "focus": true, "reveal": "always" }, "options": { "cwd": "${workspaceFolder}" } }, { "label": "pre-commit: run all files", "type": "shell", "command": "pre-commit run --all-files", "problemMatcher": [], "group": { "kind": "build" }, "presentation": { "focus": true, "reveal": "always" }, "options": { "cwd": "${workspaceFolder}" } }, { "label": "Pytest: Unit tests", "type": "shell", "command": "${command:python.interpreterPath} -m pytest --cov-config=pyproject.toml --cov=cookidoo_api -v --color=yes", "problemMatcher": [], "group": { "kind": "test", "isDefault": true }, "presentation": { "focus": true, "reveal": "always" }, "options": { "cwd": "${workspaceFolder}" } }, { "label": "Pytest: Smoke test", "type": "shell", "command": "${command:python.interpreterPath} -m pytest smoke_test -v --color=yes -x", "problemMatcher": [], "group": { "kind": "test", "isDefault": true }, "presentation": { "focus": true, "reveal": "always" }, "options": { "cwd": "${workspaceFolder}" } }, { "label": "Python: Process cookidoo localization extract", "type": "shell", "command": "scripts/run-in-env.sh python scripts/process-localization-extract.py", "problemMatcher": [], "group": { "kind": "build" }, "presentation": { "focus": true, "reveal": "always" }, "options": { "cwd": "${workspaceFolder}" } } ] }