diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..e26aa91 --- /dev/null +++ b/.vscode/launch.json @@ -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 + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..a9399d3 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,15 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Poetry Install", + "type": "shell", + "command": "poetry install", + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + } + ] +} \ No newline at end of file