-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
248 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,49 @@ | ||
{ | ||
"name": "service-template", | ||
"dockerComposeFile": [ | ||
"../docker-compose.yml" | ||
], | ||
"service": "base-service", | ||
"shutdownAction": "none", | ||
"workspaceFolder": "/workspace/codeforlife-service-template", | ||
"remoteUser": "root", | ||
"features": { | ||
"ghcr.io/devcontainers/features/python:1": { | ||
"version": "3.8", | ||
"installTools": false | ||
}, | ||
"ghcr.io/devcontainers-contrib/features/pipenv:2": { | ||
"version": "2023.11.15" | ||
}, | ||
"ghcr.io/devcontainers/features/node:1": { | ||
"version": "18" | ||
} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
//TODO: Specify preferred settings and extensions once defined | ||
"settings": { | ||
"python.defaultInterpreterPath": "backend/.venv/bin/python" | ||
}, | ||
"extensions": [ | ||
"visualstudioexptteam.vscodeintellicode", | ||
"github.vscode-pull-request-github", | ||
"redhat.vscode-yaml", | ||
"davidanson.vscode-markdownlint", | ||
"bierner.markdown-mermaid", | ||
"streetsidesoftware.code-spell-checker", | ||
"dbaeumer.vscode-eslint", | ||
"ms-python.python", | ||
"ms-python.debugpy", | ||
"ms-python.pylint", | ||
"ms-python.isort", | ||
"ms-python.vscode-pylance", | ||
"ms-python.mypy-type-checker", | ||
"ms-python.black-formatter", | ||
"streetsidesoftware.code-spell-checker", | ||
"tamasfe.even-better-toml", | ||
"kevinrose.vsc-python-indent", | ||
"batisteo.vscode-django", | ||
"njpwerner.autodocstring", | ||
"visualstudioexptteam.vscodeintellicode", | ||
"wholroyd.jinja", | ||
"qwtel.sqlite-viewer" | ||
"qwtel.sqlite-viewer", | ||
"njpwerner.autodocstring" | ||
] | ||
} | ||
} | ||
}, | ||
"dockerComposeFile": [ | ||
"../docker-compose.yml" | ||
], | ||
"features": { | ||
"ghcr.io/devcontainers-contrib/features/pipenv:2": { | ||
"version": "2023.11.15" | ||
}, | ||
"ghcr.io/devcontainers/features/node:1": { | ||
"version": "18" | ||
}, | ||
"ghcr.io/devcontainers/features/python:1": { | ||
"installTools": false, | ||
"version": "3.8" | ||
} | ||
}, | ||
"mounts": [ | ||
"source=./codeforlife-package-javascript,target=/workspace/codeforlife-package-javascript,type=bind,consistency=cached", | ||
"source=./codeforlife-package-python,target=/workspace/codeforlife-package-python,type=bind,consistency=cached" | ||
], | ||
"name": "service-template", | ||
"postCreateCommand": "./setup", | ||
"remoteUser": "root", | ||
"service": "base-service", | ||
"shutdownAction": "none", | ||
"workspaceFolder": "/workspace/codeforlife-service-template" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"javascript.module.doccomment": { | ||
"body": [ | ||
"/**", | ||
" * \u00a9 Ocado Group", | ||
" * Created on $CURRENT_DATE/$CURRENT_MONTH/$CURRENT_YEAR at $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND($CURRENT_TIMEZONE_OFFSET).", | ||
" *", | ||
" * ${1:__description__}", | ||
" */" | ||
], | ||
"prefix": [ | ||
"/" | ||
], | ||
"scope": "javascript,typescript,javascriptreact,typescriptreact" | ||
}, | ||
"python.module.docstring": { | ||
"body": [ | ||
"\"\"\"", | ||
"\u00a9 Ocado Group", | ||
"Created on $CURRENT_DATE/$CURRENT_MONTH/$CURRENT_YEAR at $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND($CURRENT_TIMEZONE_OFFSET).", | ||
"", | ||
"${1:__description__}", | ||
"\"\"\"" | ||
], | ||
"prefix": [ | ||
"\"\"\"", | ||
"'''" | ||
], | ||
"scope": "python" | ||
}, | ||
"python.mypy.ignore": { | ||
"body": [ | ||
"# type: ignore[${1:__code_name__}]" | ||
], | ||
"prefix": [ | ||
"# type" | ||
], | ||
"scope": "python" | ||
}, | ||
"python.pylint.disable-next": { | ||
"body": [ | ||
"# pylint: disable-next=${1:__code_name__}" | ||
], | ||
"prefix": [ | ||
"# pylint" | ||
], | ||
"scope": "python" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,42 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"console": "integratedTerminal", | ||
"justMyCode": false, | ||
"name": "Python: Current File", | ||
"program": "${file}", | ||
"request": "launch", | ||
"type": "debugpy" | ||
}, | ||
{ | ||
"justMyCode": false, | ||
"name": "Pytest", | ||
"presentation": { | ||
"hidden": true | ||
}, | ||
"request": "test", | ||
"type": "debugpy" | ||
}, | ||
{ | ||
"name": "React Dev Server", | ||
"preLaunchTask": "start-react-dev-server", | ||
"request": "launch", | ||
"type": "chrome", | ||
"url": "http://localhost:3000" | ||
}, | ||
{ | ||
"args": [ | ||
"runserver", | ||
"localhost:8000" | ||
], | ||
"django": true, | ||
"justMyCode": false, | ||
"name": "Django Server", | ||
"preLaunchTask": "migrate-db", | ||
"program": "${workspaceFolder}/backend/manage.py", | ||
"request": "launch", | ||
"name": "Launch Chrome", | ||
"url": "http://localhost:3000", | ||
"webRoot": "${workspaceFolder}/src" | ||
"type": "debugpy" | ||
} | ||
] | ||
], | ||
"version": "0.2.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,79 @@ | ||
{ | ||
"editor.tabSize": 2, | ||
"javascript.preferences.quoteStyle": "single", | ||
"typescript.preferences.quoteStyle": "single" | ||
"[md]": { | ||
"editor.tabSize": 4 | ||
}, | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.black-formatter", | ||
"editor.tabSize": 4 | ||
}, | ||
"black-formatter.args": [ | ||
"--config", | ||
"pyproject.toml" | ||
], | ||
"black-formatter.cwd": "${workspaceFolder}/backend", | ||
"black-formatter.path": [ | ||
".venv/bin/python", | ||
"-m", | ||
"black" | ||
], | ||
"cSpell.words": [ | ||
"codeforlife", | ||
"klass", | ||
"ocado", | ||
"kurono", | ||
"pipenv" | ||
], | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "explicit" | ||
}, | ||
"editor.formatOnSave": true, | ||
"editor.rulers": [ | ||
80 | ||
], | ||
"editor.tabSize": 2, | ||
"files.exclude": { | ||
"**/.hypothesis": true, | ||
"**/.mypy_cache": true, | ||
"**/.pytest_cache": true, | ||
"**/__pycache__": true | ||
}, | ||
"isort.args": [ | ||
"--settings-file=backend/pyproject.toml" | ||
], | ||
"isort.path": [ | ||
"backend/.venv/bin/python", | ||
"-m", | ||
"isort" | ||
], | ||
"mypy-type-checker.args": [ | ||
"--config-file=pyproject.toml" | ||
], | ||
"mypy-type-checker.cwd": "${workspaceFolder}/backend", | ||
"mypy-type-checker.path": [ | ||
".venv/bin/python", | ||
"-m", | ||
"mypy" | ||
], | ||
"pylint.args": [ | ||
"--rcfile=pyproject.toml" | ||
], | ||
"pylint.cwd": "${workspaceFolder}/backend", | ||
"pylint.path": [ | ||
".venv/bin/python", | ||
"-m", | ||
"pylint" | ||
], | ||
"python.analysis.extraPaths": [ | ||
"../codeforlife-package-python" | ||
], | ||
"python.defaultInterpreterPath": "backend/.venv/bin/python", | ||
"python.testing.cwd": "${workspaceFolder}/backend", | ||
"python.testing.pytestArgs": [ | ||
"-n=auto", | ||
"-c=pyproject.toml", | ||
"." | ||
], | ||
"python.testing.pytestEnabled": true, | ||
"python.testing.unittestEnabled": false, | ||
"typescript.preferences.quoteStyle": "single" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"tasks": [ | ||
{ | ||
"isBackground": true, | ||
"label": "start-react-dev-server", | ||
"options": { | ||
"env": { | ||
"BROWSER": "none" | ||
} | ||
}, | ||
"path": "frontend", | ||
"problemMatcher": [], | ||
"script": "start", | ||
"type": "npm" | ||
}, | ||
{ | ||
"command": "pipenv install --dev", | ||
"label": "pipenv-install-dev", | ||
"options": { | ||
"cwd": "${workspaceFolder}/backend" | ||
}, | ||
"type": "shell" | ||
}, | ||
{ | ||
"command": "pipenv run python ./manage.py migrate", | ||
"dependsOn": [ | ||
"pipenv-install-dev" | ||
], | ||
"label": "migrate-db", | ||
"options": { | ||
"cwd": "${workspaceFolder}/backend" | ||
}, | ||
"type": "shell" | ||
} | ||
], | ||
"version": "2.0.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"name": "service-template", | ||
"path": "." | ||
}, | ||
{ | ||
"name": "package-python", | ||
"path": "../codeforlife-package-python" | ||
} | ||
], | ||
"settings": { | ||
"autoDocstring.customTemplatePath": ".vscode/extensions/autoDocstring/docstring.mustache", | ||
"workbench.colorCustomizations": { | ||
"editorRuler.foreground": "#008000" | ||
} | ||
} | ||
} |