Skip to content

Instantly share code, notes, and snippets.

@felixhammerl
Created October 7, 2024 07:23
Show Gist options
  • Save felixhammerl/a6b015f84a16b2de6daaa01c3c8bb823 to your computer and use it in GitHub Desktop.
Save felixhammerl/a6b015f84a16b2de6daaa01c3c8bb823 to your computer and use it in GitHub Desktop.
Python debugging #1
{
"version": "0.2.0",
"configurations": [
{
"name": "Test (Unit)",
"type": "debugpy",
"request": "launch",
"console": "integratedTerminal",
"module": "pytest",
"envFile": "${workspaceFolder}/.local.dec.env",
"preLaunchTask": "decrypt-secrets",
"postDebugTask": "delete-secrets",
"args": [
"--disable-pytest-warnings",
"tests/unit"
]
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "decrypt-secrets",
"type": "shell",
"command": "make decrypt-secrets",
"hide": true,
"presentation": {
"reveal": "never"
}
},
{
"label": "delete-secrets",
"type": "shell",
"command": "make delete-secrets",
"hide": true,
"presentation": {
"reveal": "never"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment