From eb5f5362eed4a2b932b492064fefb3125c7a1abb Mon Sep 17 00:00:00 2001 From: Alexey Velikiy Date: Wed, 15 May 2019 04:10:10 +0300 Subject: [PATCH] VSCode settings improvements in analytics (#645) --- analytics/.vscode/.env | 1 + analytics/.vscode/launch.json | 56 ++++++++++++++++----------------- analytics/.vscode/settings.json | 29 +++++++++-------- 3 files changed, 45 insertions(+), 41 deletions(-) create mode 100644 analytics/.vscode/.env diff --git a/analytics/.vscode/.env b/analytics/.vscode/.env new file mode 100644 index 0000000..506628b --- /dev/null +++ b/analytics/.vscode/.env @@ -0,0 +1 @@ +PYTHONPATH=analytics diff --git a/analytics/.vscode/launch.json b/analytics/.vscode/launch.json index 438cd64..065a4d4 100644 --- a/analytics/.vscode/launch.json +++ b/analytics/.vscode/launch.json @@ -1,32 +1,32 @@ { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Attach (Remote Debug)", + "type": "python", + "request": "attach", + "port": 5679, + "host": "localhost", + "pathMappings": [ { - "name": "Attach (Remote Debug)", - "type": "python", - "request": "attach", - "port": 5679, - "host": "localhost", - "pathMappings": [ - { - "localRoot": "${workspaceFolder}", - "remoteRoot": "/var/www/analytics" - } - ] - }, - { - "name": "Python: Current File", - "type": "python", - "request": "launch", - "windows": { - "program": "${workspaceFolder}\\bin\\server" - }, - "linux": { - "program": "${workspaceFolder}/bin/server" - } + "localRoot": "${workspaceFolder}", + "remoteRoot": "/var/www/analytics" } - ] + ] + }, + { + "name": "Python: Current File", + "type": "python", + "request": "launch", + "windows": { + "program": "${workspaceFolder}\\bin\\server" + }, + "linux": { + "program": "${workspaceFolder}/bin/server" + } + } + ] } diff --git a/analytics/.vscode/settings.json b/analytics/.vscode/settings.json index 67cf3df..d2094cf 100644 --- a/analytics/.vscode/settings.json +++ b/analytics/.vscode/settings.json @@ -1,18 +1,21 @@ -{ - "python.pythonPath": "python", - "python.linting.enabled": true, +{ "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", - "editor.tabSize": 4, "editor.insertSpaces": true, "files.eol": "\n", "files.exclude": { - "**/__pycache__/": true -}, -"python.unitTest.unittestArgs": [ - "-v" -], -"python.unitTest.pyTestEnabled": false, -"python.unitTest.nosetestsEnabled": false, -"python.unitTest.unittestEnabled": true, -"python.linting.pylintEnabled": true + "**/__pycache__/": true, + "dist": true, + "build": true + }, + "[python]": { + "editor.tabSize": 4, + }, + "python.envFile": "${workspaceFolder}/.vscode/.env", + "python.pythonPath": "python", + "python.linting.enabled": true, + "python.testing.unittestArgs": [ "-v" ], + "python.testing.pyTestEnabled": false, + "python.testing.nosetestsEnabled": false, + "python.testing.unittestEnabled": true, + "python.linting.pylintEnabled": true, }