Skip to content

Commit

Permalink
added prototypical vscode execution configs
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ-Author committed Oct 23, 2024
1 parent e83f9b5 commit bc80dbb
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"configurations": [
{
"type": "debugpy",
"request": "launch",
"name": "Launch Custom Proxy (manual virtual env selection)",
"program": "${workspaceFolder}/ontologytimemachine/custom_proxy.py",
"args": [
"--ontoFormat","ntriples",
"--ontoVersion","originalFailoverLiveLatest",
"--ontoPrecedence","enforcedPriority",
"--httpsInterception","archivo",
"--logLevelTimeMachine","debug",
"--logLevelBase","info",
"--port","8877"
]
},
{ //untested
"type": "debugpy",
"request": "launch",
"name": "Launch Custom Proxy with Poetry venv (Untested)",
"program": "${workspaceFolder}/ontologytimemachine/custom_proxy.py",
"args": [
"--ontoFormat", "ntriples",
"--ontoVersion","originalFailoverLiveLatest",
"--ontoPrecedence","enforcedPriority"
],
"console": "integratedTerminal",
"env": {
"POETRY_VIRTUALENVS_IN_PROJECT": "true" // tell poetry to create virtualenv in project folder
},
"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
}
]
}
15 changes: 15 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Poetry Install",
"type": "shell",
"command": "poetry install",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}

0 comments on commit bc80dbb

Please sign in to comment.