diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..acb70ee --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,46 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "DebugPy: Run pytest module (manually select venv of poetry)", + "type": "debugpy", + "request": "launch", + // "pythonPath": "${workspaceFolder}/.venv/Scripts/python.exe", // need to set venv of poetry via vscode + "cwd": "${workspaceFolder}", + "module": "pytest", + "args": [ + ], + "console": "integratedTerminal", + "justMyCode": true, + }, + // run pytests with poetry + // { + // "name": "DebugPy: poetry run pytest", + // "type": "debugpy", + // "request": "launch", + // "program": "poetry", + // "args": [ + // "run pytest" + // ], + // // "env": { + // // "PYTHONPATH": "${workspaceFolder}" + // // }, + // "console": "integratedTerminal" + // }, + { + "name": "[Deprecated] Python: Run pytest module (manually select venv of poetry)", + "type": "python", + "request": "launch", + // "pythonPath": "${workspaceFolder}/.venv/Scripts/python.exe", + "cwd": "${workspaceFolder}", + "module": "pytest", + "args": [ + ], + "console": "integratedTerminal", + "justMyCode": false, + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9b38853 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "python.testing.pytestArgs": [ + "tests" + ], + "python.testing.unittestEnabled": false, + "python.testing.pytestEnabled": true +} \ No newline at end of file