Skip to content

Commit 058e5cf

Browse files
committed
initial vscode configs
1 parent d3ca19c commit 058e5cf

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.vscode/launch.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "DebugPy: Run pytest module (manually select venv of poetry)",
9+
"type": "debugpy",
10+
"request": "launch",
11+
// "pythonPath": "${workspaceFolder}/.venv/Scripts/python.exe", // need to set venv of poetry via vscode
12+
"cwd": "${workspaceFolder}",
13+
"module": "pytest",
14+
"args": [
15+
],
16+
"console": "integratedTerminal",
17+
"justMyCode": true,
18+
},
19+
// run pytests with poetry
20+
// {
21+
// "name": "DebugPy: poetry run pytest",
22+
// "type": "debugpy",
23+
// "request": "launch",
24+
// "program": "poetry",
25+
// "args": [
26+
// "run pytest"
27+
// ],
28+
// // "env": {
29+
// // "PYTHONPATH": "${workspaceFolder}"
30+
// // },
31+
// "console": "integratedTerminal"
32+
// },
33+
{
34+
"name": "[Deprecated] Python: Run pytest module (manually select venv of poetry)",
35+
"type": "python",
36+
"request": "launch",
37+
// "pythonPath": "${workspaceFolder}/.venv/Scripts/python.exe",
38+
"cwd": "${workspaceFolder}",
39+
"module": "pytest",
40+
"args": [
41+
],
42+
"console": "integratedTerminal",
43+
"justMyCode": false,
44+
}
45+
]
46+
}

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"python.testing.pytestArgs": [
3+
"tests"
4+
],
5+
"python.testing.unittestEnabled": false,
6+
"python.testing.pytestEnabled": true
7+
}

0 commit comments

Comments
 (0)