| 1 |
{ |
| 2 |
// See https://go.microsoft.com/fwlink/?LinkId=733558 |
| 3 |
// for the documentation about the tasks.json format |
| 4 |
"version": "2.0.0", |
| 5 |
"tasks": [ |
| 6 |
{ |
| 7 |
"label": "Python: Build cookidoo-api package", |
| 8 |
"type": "shell", |
| 9 |
"command": "scripts/run-in-env.sh pip install -e .", |
| 10 |
"problemMatcher": [], |
| 11 |
"group": { |
| 12 |
"kind": "build" |
| 13 |
}, |
| 14 |
"presentation": { |
| 15 |
"focus": true, |
| 16 |
"reveal": "always" |
| 17 |
}, |
| 18 |
"options": { |
| 19 |
"cwd": "${workspaceFolder}" |
| 20 |
} |
| 21 |
}, |
| 22 |
{ |
| 23 |
"label": "mkdocs: serve", |
| 24 |
"type": "shell", |
| 25 |
"command": "mkdocs serve", |
| 26 |
"problemMatcher": [], |
| 27 |
"presentation": { |
| 28 |
"focus": true, |
| 29 |
"reveal": "always" |
| 30 |
}, |
| 31 |
"options": { |
| 32 |
"cwd": "${workspaceFolder}" |
| 33 |
} |
| 34 |
}, |
| 35 |
{ |
| 36 |
"label": "pre-commit: run all files", |
| 37 |
"type": "shell", |
| 38 |
"command": "pre-commit run --all-files", |
| 39 |
"problemMatcher": [], |
| 40 |
"group": { |
| 41 |
"kind": "build" |
| 42 |
}, |
| 43 |
"presentation": { |
| 44 |
"focus": true, |
| 45 |
"reveal": "always" |
| 46 |
}, |
| 47 |
"options": { |
| 48 |
"cwd": "${workspaceFolder}" |
| 49 |
} |
| 50 |
}, |
| 51 |
{ |
| 52 |
"label": "Pytest: Unit tests", |
| 53 |
"type": "shell", |
| 54 |
"command": "${command:python.interpreterPath} -m pytest --cov-config=pyproject.toml --cov=cookidoo_api -v --color=yes", |
| 55 |
"problemMatcher": [], |
| 56 |
"group": { |
| 57 |
"kind": "test", |
| 58 |
"isDefault": true |
| 59 |
}, |
| 60 |
"presentation": { |
| 61 |
"focus": true, |
| 62 |
"reveal": "always" |
| 63 |
}, |
| 64 |
"options": { |
| 65 |
"cwd": "${workspaceFolder}" |
| 66 |
} |
| 67 |
}, |
| 68 |
{ |
| 69 |
"label": "Pytest: Smoke test", |
| 70 |
"type": "shell", |
| 71 |
"command": "${command:python.interpreterPath} -m pytest smoke_test -v --color=yes -x", |
| 72 |
"problemMatcher": [], |
| 73 |
"group": { |
| 74 |
"kind": "test", |
| 75 |
"isDefault": true |
| 76 |
}, |
| 77 |
"presentation": { |
| 78 |
"focus": true, |
| 79 |
"reveal": "always" |
| 80 |
}, |
| 81 |
"options": { |
| 82 |
"cwd": "${workspaceFolder}" |
| 83 |
} |
| 84 |
}, |
| 85 |
{ |
| 86 |
"label": "Python: Process cookidoo localization extract", |
| 87 |
"type": "shell", |
| 88 |
"command": "scripts/run-in-env.sh python scripts/process-localization-extract.py", |
| 89 |
"problemMatcher": [], |
| 90 |
"group": { |
| 91 |
"kind": "build" |
| 92 |
}, |
| 93 |
"presentation": { |
| 94 |
"focus": true, |
| 95 |
"reveal": "always" |
| 96 |
}, |
| 97 |
"options": { |
| 98 |
"cwd": "${workspaceFolder}" |
| 99 |
} |
| 100 |
} |
| 101 |
] |
| 102 |
} |