Add settings and extension recommendations (#139)

- Added recommended settings for the Pylance and Pyright extensions
- Enabled pytest and debugging support in configuration
- Reformatted code with Prettier
---------
Co-authored-by: Chris <git@nootch.de>
This commit is contained in:
Chris
2024-11-10 23:00:16 +01:00
committed by GitHub
parent 1ed06fc270
commit de9fe2ddc9
10 changed files with 135 additions and 84 deletions

14
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,14 @@
{
"recommendations": [
//python
"ms-python.python",
"ms-python.debugpy",
"charliermarsh.ruff",
"ms-python.mypy-type-checker",
// misc
"swellaby.workspace-config-plus", // allows user and shared settings
"christian-kohler.path-intellisense",
"esbenp.prettier-vscode"
]
}

13
.vscode/settings.shared.json vendored Normal file
View File

@@ -0,0 +1,13 @@
{
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.defaultFoldingRangeProvider": "charliermarsh.ruff",
"editor.formatOnSave": true,
"python.analysis.autoImportCompletions": true,
"mypy-type-checker.importStrategy": "fromEnvironment",
"python.testing.pytestArgs": [],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}