Skip to content

Commit

Permalink
Configure python testing for vs code
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtitherington committed Mar 7, 2024
1 parent 4a03643 commit 563a5f1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"prettier.configPath": "./frontend/.prettierrc.js",
"prettier.bracketSpacing": false,
"python.defaultInterpreterPath": "./.venv/bin/python",
"python.envFile": "${workspaceFolder}/backend/.env.development",
"python.terminal.activateEnvironment": true,
"black-formatter.args": ["--config=${workspaceFolder}/backend/pyproject.toml"],
"flake8.args": ["--config=${workspaceFolder}/backend/setup.cfg"],
Expand All @@ -21,7 +22,13 @@
},
"python.terminal.activateEnvInCurrentTerminal": true,
"python.analysis.typeCheckingMode": "basic",
"python.testing.unittestArgs": ["-v", "-s", "./backend", "-p", "test_*.py"],
"python.testing.unittestArgs": [
"-v",
"-s",
"./backend",
"-p",
"test*.py"
],
"python.testing.pytestEnabled": false,
"python.testing.unittestEnabled": true
}

0 comments on commit 563a5f1

Please sign in to comment.