more convenience settings for vscode

This commit is contained in:
Jörn-Michael Miehe 2024-08-06 21:49:51 +02:00
parent 46f6468561
commit 378f02059c
2 changed files with 23 additions and 3 deletions

View file

@ -8,12 +8,22 @@
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers-contrib/features/poetry:2": {}
"ghcr.io/devcontainers-contrib/features/poetry:2": {},
"ghcr.io/devcontainers/features/git-lfs:1": {}
// "ghcr.io/devcontainers-contrib/features/apt-get-packages:1": {
// "packages": "git-flow"
// }
},
"mounts": [
{
// make home directory persistent
"source": "devcontainer-home-vscode-${devcontainerId}",
"target": "/home/vscode",
"type": "volume"
}
],
// "containerEnv": {
// "TZ": "Europe/Berlin"
// },

14
.vscode/settings.json vendored
View file

@ -1,20 +1,30 @@
{
"python.languageServer": "Pylance",
"[python]": {
"diffEditor.ignoreTrimWhitespace": false,
"editor.formatOnSave": true,
"editor.wordBasedSuggestions": "off",
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
"source.organizeImports": "explicit",
"source.fixAll": "explicit",
},
},
"git.closeDiffOnOperation": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.importFormat": "relative",
"python.analysis.fixAll": [
"source.convertImportFormat",
"source.unusedImports",
],
"python.analysis.typeCheckingMode": "basic",
"python.analysis.diagnosticMode": "workspace",
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": [
"--import-mode=importlib"
"--import-mode=importlib",
],
// "black-formatter.importStrategy": "fromEnvironment",
// "flake8.importStrategy": "fromEnvironment",
// "isort.importStrategy": "fromEnvironment",
}