From 1684515eabc8e3fff686efc95adf65ede4d4c851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Schmelczer?= Date: Wed, 6 Apr 2022 17:21:05 +0200 Subject: [PATCH] Add lint and test scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: AndrĂ¡s Schmelczer --- .vscode/tasks.json | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..b26b1a5 --- /dev/null +++ b/.vscode/tasks.json @@ -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}" + } + } + ] +}