Skip to content

Commit

Permalink
chore: add launch and task configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
brendancsmith committed Apr 26, 2024
1 parent 771640b commit d081022
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
},
{
"name": "Python: Run Functional Tests (From Scratch)",
"type": "debugpy",
"request": "launch",
"program": "pytest",
"console": "integratedTerminal",
"env": {
"PYTEST_CASSETTES_DIR": "${workspaceFolder}/tests/cassettes"
},
"preLaunchTask": "delete_cassettes"
}
]
}
17 changes: 17 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "delete_cassettes",
"type": "shell",
"command": "rm",
"args": ["-rf", "${workspaceFolder}/tests/**/cassettes/*.yaml"],
"problemMatcher": {
"base": "$tsc-watch",
"applyTo": "allDocuments"
}
}
]
}

0 comments on commit d081022

Please sign in to comment.