Add VS Code settings

This commit is contained in:
François Voron
2024-02-05 09:20:45 +01:00
parent 9d07464be1
commit 8ef6699ab7
2 changed files with 21 additions and 3 deletions

21
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,21 @@
{
"python.analysis.typeCheckingMode": "basic",
"python.analysis.autoImportCompletions": true,
"python.terminal.activateEnvironment": true,
"python.terminal.activateEnvInCurrentTerminal": true,
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"editor.rulers": [88],
"python.defaultInterpreterPath": "${workspaceFolder}/.hatch/fastapi-users/bin/python",
"python.testing.pytestPath": "${workspaceFolder}/.hatch/fastapi-users/bin/pytest",
"python.testing.cwd": "${workspaceFolder}",
"python.testing.pytestArgs": ["--no-cov"],
"[python]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
},
"editor.defaultFormatter": "charliermarsh.ruff"
}
}