Skip to content

Commit

Permalink
initial vscode configs
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ-Author committed Feb 14, 2024
1 parent d3ca19c commit 058e5cf
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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,
}
]
}
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}

0 comments on commit 058e5cf

Please sign in to comment.