Skip to content

Commit 6792714

Browse files
author
Tjaz Erzen
committed
VS code configs for debugging
1 parent 2392f10 commit 6792714

2 files changed

Lines changed: 53 additions & 0 deletions

File tree

.vscode/launch.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Debug plain2code.py for file hello_world_python.plain",
6+
"type": "debugpy",
7+
"request": "launch",
8+
"program": "${workspaceFolder}/plain2code.py",
9+
"args": [
10+
"${workspaceFolder}/examples/example_hello_world_python/hello_world_python_proceed.plain",
11+
],
12+
"subProcess": false,
13+
"cwd": "${workspaceFolder}/examples/example_hello_world_python",
14+
"console": "integratedTerminal",
15+
"justMyCode": false,
16+
"env": {
17+
"PYTHONPATH": "${workspaceFolder}"
18+
}
19+
}
20+
]
21+
}

.vscode/settings.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"editor.insertSpaces": true,
4+
"editor.detectIndentation": false,
5+
"editor.codeActionsOnSave": {
6+
"source.organizeImports": "explicit"
7+
},
8+
"[python]": {
9+
"editor.defaultFormatter": "ms-python.black-formatter",
10+
"editor.formatOnSave": true,
11+
"editor.rulers": [120],
12+
"editor.insertSpaces": true,
13+
"editor.tabSize": 4
14+
},
15+
"editor.defaultFormatter": "ms-python.black-formatter",
16+
"notebook.defaultFormatter": "ms-python.black-formatter",
17+
"python.testing.unittestEnabled": true,
18+
"python.testing.pytestEnabled": false,
19+
"python.testing.unittestArgs": [
20+
"-v",
21+
"-p",
22+
"test_*.py",
23+
"-t",
24+
"${workspaceFolder}"
25+
],
26+
"python.analysis.extraPaths": [
27+
"${workspaceFolder}"
28+
],
29+
"files.associations": {
30+
"**/tests/data/*": "text"
31+
}
32+
}

0 commit comments

Comments
 (0)