Skip to content

Commit

Permalink
fixed missing version and other adoptions to launch.json
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ-Author committed Nov 15, 2024
1 parent 07640ee commit 96e5f39
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Time-Machine (manual virtual env selection)",
"type": "debugpy",
"request": "launch",
"name": "Run Time-Machine (manual virtual env selection)",
"program": "${workspaceFolder}/ontologytimemachine/custom_proxy.py",
"args": [
"--ontoFormat","ntriples",
"--ontoVersion","originalFailoverLiveLatest",
"--ontoPrecedence","enforcedPriority",
"--ontoVersion","latestArchived",
// "--ontoPrecedence","enforcedPriority",
"--httpsInterception","archivo",
"--logLevelTimeMachine","debug",
"--logLevelBase","info",
"--port","8877"
]
},
{
"name": "Run pytest module (manual virtual env selection)",
"name": "Pytest test (manual virtual env selection)",
"type": "debugpy",
"request": "launch",
"cwd": "${workspaceFolder}",
"module": "pytest",
"args": [
"args": [ "tests/test_proxy_auth_header.py"
],
"console": "integratedTerminal",
// "preLaunchTask":"Wait for Poetry Run Time-Machine-Proxy",
"justMyCode": true,
"justMyCode": false
},
{ //untested
"type": "debugpy",
Expand All @@ -43,6 +44,17 @@
},
"python": "${workspaceFolder}/.venv/bin/python", //use the virtualenv created by poetry from the project folder
"preLaunchTask": "Poetry Install" // run the task to create virtual environment and install dependencies before launching the script
}
},
// { // does not work
// "name": "Python: Tests in current file",
// "purpose": ["debug-test"],
// "type": "debugpy",
// "request": "launch",
// "program": "${file}",
// "args": ["--color=yes --log-cli-level=DEBUG"],
// "env": {"ENV_VAR":"RandomStuff"},
// "console": "integratedTerminal",
// "justMyCode": false
// }
]
}

0 comments on commit 96e5f39

Please sign in to comment.