From 6c03d3bdfefc3ed55e4776d3a5cffd1641dac8c1 Mon Sep 17 00:00:00 2001 From: Stefan Kairinos Date: Wed, 24 Jan 2024 11:55:16 +0000 Subject: [PATCH] add settings (#73) --- .../devcontainer.json | 34 +++++++++++++++++- .../devcontainer.json | 36 +++++++++++++++++-- 2 files changed, 67 insertions(+), 3 deletions(-) diff --git a/.devcontainer/codeforlife-package-python/devcontainer.json b/.devcontainer/codeforlife-package-python/devcontainer.json index 2551cca0..927d3fae 100644 --- a/.devcontainer/codeforlife-package-python/devcontainer.json +++ b/.devcontainer/codeforlife-package-python/devcontainer.json @@ -21,7 +21,39 @@ "vscode": { //TODO: Specify preferred settings and extensions once defined "settings": { - "python.defaultInterpreterPath": ".venv/bin/python" + "python.defaultInterpreterPath": ".venv/bin/python", + "autoDocstring.customTemplatePath": ".vscode/extensions/autoDocstring/docstring.mustache", + "files.exclude": { + "**/__pycache__": true, + "**/.pytest_cache": true, + "**/.mypy_cache": true, + "**/.hypothesis": true + }, + "editor.tabSize": 2, + "editor.rulers": [ + 80 + ], + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.organizeImports": "explicit" + }, + "workbench.colorCustomizations": { + "editorRuler.foreground": "#008000" + }, + "[md]": { + "editor.tabSize": 4 + }, + "[python]": { + "editor.tabSize": 4, + "editor.defaultFormatter": "ms-python.black-formatter", + }, + "cSpell.words": [ + "codeforlife", + "klass", + "ocado", + "kurono", + "pipenv" + ] }, "extensions": [ "github.vscode-pull-request-github", diff --git a/.devcontainer/codeforlife-portal-react/devcontainer.json b/.devcontainer/codeforlife-portal-react/devcontainer.json index 13b92329..48c8cc2f 100644 --- a/.devcontainer/codeforlife-portal-react/devcontainer.json +++ b/.devcontainer/codeforlife-portal-react/devcontainer.json @@ -7,7 +7,7 @@ "shutdownAction": "none", "workspaceFolder": "/workspace/codeforlife-portal-react", "remoteUser": "root", - "postCreateCommand": "./setup.sh", + "postCreateCommand": "./setup", "features": { "ghcr.io/devcontainers/features/python:1": { "version": "3.8", @@ -24,7 +24,39 @@ "vscode": { //TODO: Specify preferred settings and extensions once defined "settings": { - "python.defaultInterpreterPath": "backend/.venv/bin/python" + "python.defaultInterpreterPath": "backend/.venv/bin/python", + "autoDocstring.customTemplatePath": ".vscode/extensions/autoDocstring/docstring.mustache", + "files.exclude": { + "**/__pycache__": true, + "**/.pytest_cache": true, + "**/.mypy_cache": true, + "**/.hypothesis": true + }, + "editor.tabSize": 2, + "editor.rulers": [ + 80 + ], + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.organizeImports": "explicit" + }, + "workbench.colorCustomizations": { + "editorRuler.foreground": "#008000" + }, + "[md]": { + "editor.tabSize": 4 + }, + "[python]": { + "editor.tabSize": 4, + "editor.defaultFormatter": "ms-python.black-formatter", + }, + "cSpell.words": [ + "codeforlife", + "klass", + "ocado", + "kurono", + "pipenv" + ] }, "extensions": [ "github.vscode-pull-request-github",