more convenience settings for vscode
This commit is contained in:
parent
46f6468561
commit
378f02059c
2 changed files with 23 additions and 3 deletions
|
@ -8,12 +8,22 @@
|
||||||
|
|
||||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||||
"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": {
|
// "ghcr.io/devcontainers-contrib/features/apt-get-packages:1": {
|
||||||
// "packages": "git-flow"
|
// "packages": "git-flow"
|
||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"mounts": [
|
||||||
|
{
|
||||||
|
// make home directory persistent
|
||||||
|
"source": "devcontainer-home-vscode-${devcontainerId}",
|
||||||
|
"target": "/home/vscode",
|
||||||
|
"type": "volume"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
// "containerEnv": {
|
// "containerEnv": {
|
||||||
// "TZ": "Europe/Berlin"
|
// "TZ": "Europe/Berlin"
|
||||||
// },
|
// },
|
14
.vscode/settings.json
vendored
14
.vscode/settings.json
vendored
|
@ -1,20 +1,30 @@
|
||||||
{
|
{
|
||||||
"python.languageServer": "Pylance",
|
"python.languageServer": "Pylance",
|
||||||
"[python]": {
|
"[python]": {
|
||||||
|
"diffEditor.ignoreTrimWhitespace": false,
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
|
"editor.wordBasedSuggestions": "off",
|
||||||
"editor.defaultFormatter": "ms-python.black-formatter",
|
"editor.defaultFormatter": "ms-python.black-formatter",
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.organizeImports": "explicit"
|
"source.organizeImports": "explicit",
|
||||||
|
"source.fixAll": "explicit",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"git.closeDiffOnOperation": true,
|
"git.closeDiffOnOperation": true,
|
||||||
|
"python.analysis.autoImportCompletions": true,
|
||||||
|
"python.analysis.importFormat": "relative",
|
||||||
|
"python.analysis.fixAll": [
|
||||||
|
"source.convertImportFormat",
|
||||||
|
"source.unusedImports",
|
||||||
|
],
|
||||||
"python.analysis.typeCheckingMode": "basic",
|
"python.analysis.typeCheckingMode": "basic",
|
||||||
"python.analysis.diagnosticMode": "workspace",
|
"python.analysis.diagnosticMode": "workspace",
|
||||||
"python.testing.unittestEnabled": false,
|
"python.testing.unittestEnabled": false,
|
||||||
"python.testing.pytestEnabled": true,
|
"python.testing.pytestEnabled": true,
|
||||||
"python.testing.pytestArgs": [
|
"python.testing.pytestArgs": [
|
||||||
"--import-mode=importlib"
|
"--import-mode=importlib",
|
||||||
],
|
],
|
||||||
// "black-formatter.importStrategy": "fromEnvironment",
|
// "black-formatter.importStrategy": "fromEnvironment",
|
||||||
// "flake8.importStrategy": "fromEnvironment",
|
// "flake8.importStrategy": "fromEnvironment",
|
||||||
|
// "isort.importStrategy": "fromEnvironment",
|
||||||
}
|
}
|
Loading…
Reference in a new issue