This commit is contained in:
sergiuToporjinschi
2022-01-31 17:29:25 +02:00
parent d680d95f4c
commit 32538a66b0
5 changed files with 77 additions and 4 deletions
+36
View File
@@ -0,0 +1,36 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Odoo: Attach",
"type": "python",
"request": "attach",
"port": 5678,
"debugServer": 5678,
"host": "localhost",
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "/octoprint/octoprint/plugins/OctoPrint-CalibrationTools",
}
],
"cwd": "${workspaceFolder}/src",
"logToFile": true
},
{
"name": "Python: Remote Attach",
"type": "python",
"request": "attach",
"connect": {
"host": "localhost",
"port": 5678
},
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "/octoprint/octoprint/plugins/OctoPrint-CalibrationTools",
}
],
},
]
}
+20
View File
@@ -0,0 +1,20 @@
{
// "python.defaultInterpreterPath": "venv3/bin/python",
"python.formatting.provider": "black",
"python.formatting.blackArgs": [
"--config",
"black.toml"
],
"editor.formatOnSave": true,
"python.sortImports.args": [
"--profile=black",
],
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"python.linting.pylintEnabled": false,
// "python.linting.flake8Enabled": true,
"python.linting.enabled": true
}
+17
View File
@@ -0,0 +1,17 @@
{
// "version": "0.2.0",
// "configurations": [
// {
// "name": "OctoPrint",
// "type": "python",
// "request": "launch",
// "module": "octoprint",
// "args": [
// "serve",
// "--debug"
// ],
// "cwd": "${workspaceFolder}/octoprint_CalibrationTools",
// "preLaunchTask": "clean build artifacts"
// }
// ]
}