Check in VSCode config for easier local debug (#487)

* Fixes #466 - Task: Check in VSCode config for easier local debug
This commit is contained in:
Nat Hillard 2021-08-09 14:55:13 -04:00 committed by GitHub
commit 6c986adfe4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 152 additions and 14 deletions

71
data/data-pipeline/.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,71 @@
{
// 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": "Score Run",
"type": "python",
"request": "launch",
"module": "data_pipeline.application",
"args": ["score-run"]
},
{
"name": "Data Cleanup",
"type": "python",
"request": "launch",
"module": "data_pipeline.application",
"args": ["data-cleanup"]
},
{
"name": "Census Cleanup",
"type": "python",
"request": "launch",
"module": "data_pipeline.application",
"args": ["census-cleanup"]
},
{
"name": "Download Census",
"type": "python",
"request": "launch",
"module": "data_pipeline.application",
"args": ["census-data-download"]
},
{
"name": "Score Full Run",
"type": "python",
"request": "launch",
"module": "data_pipeline.application",
"args": ["score-full-run"]
},
{
"name": "Generate Map Tiles",
"type": "python",
"request": "launch",
"module": "data_pipeline.application",
"args": ["generate-map-tiles"]
},
{
"name": "ETL Run",
"type": "python",
"request": "launch",
"module": "data_pipeline.application",
"args": ["etl-run"]
},
{
"name": "poetry install",
"type": "python",
"request": "launch",
"module": "poetry",
"args": ["install"]
},
{
"name": "poetry update",
"type": "python",
"request": "launch",
"module": "poetry",
"args": ["update"]
}
]
}

View file

@ -0,0 +1,10 @@
{
"python.formatting.provider": "black",
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.pylintEnabled": true,
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": ["-s", "."],
"python.testing.unittestEnabled": false,
"python.testing.nosetestsEnabled": false
}

34
data/data-pipeline/.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,34 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "test with tox",
"type": "shell",
"command": "tox",
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "Run Black Formatter",
"type": "shell",
"command": "black",
"args": ["data_pipeline"]
},
{
"label": "Run Flake8 Style Enforcer",
"type": "shell",
"command": "black",
"args": ["data_pipeline"]
},
{
"label": "Run Pylint",
"type": "shell",
"command": "pylint",
"args": ["data_pipeline"]
}
]
}