-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added prototypical vscode execution configs
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
] | ||
} |