Skip to content

Commit

Permalink
single dev container (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos authored Jul 11, 2024
1 parent 7073ad7 commit 409d822
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 198 deletions.
49 changes: 0 additions & 49 deletions .devcontainer.json

This file was deleted.

49 changes: 0 additions & 49 deletions .vscode/codeforlife.code-snippets

This file was deleted.

35 changes: 0 additions & 35 deletions .vscode/extensions/autoDocstring/docstring.mustache

This file was deleted.

16 changes: 6 additions & 10 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"type": "debugpy"
},
{
"env": {
"PYTEST_ADDOPTS": "--no-cov"
},
"justMyCode": false,
"name": "Pytest",
"presentation": {
Expand All @@ -17,17 +20,10 @@
"request": "test",
"type": "debugpy"
},
{
"name": "React Dev Server",
"preLaunchTask": "start-react-dev-server",
"request": "launch",
"type": "chrome",
"url": "http://localhost:3000"
},
{
"args": [
"runserver",
"localhost:8001"
"localhost:8000"
],
"django": true,
"env": {
Expand All @@ -36,8 +32,8 @@
},
"justMyCode": false,
"name": "Django Server",
"preLaunchTask": "migrate-db",
"program": "${workspaceFolder}/backend/manage.py",
"preLaunchTask": "setup",
"program": "${workspaceFolder}/manage.py",
"request": "launch",
"type": "debugpy"
}
Expand Down
17 changes: 7 additions & 10 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"--config",
"pyproject.toml"
],
"black-formatter.cwd": "${workspaceFolder}/backend",
"black-formatter.path": [
".venv/bin/python",
"-m",
Expand Down Expand Up @@ -38,17 +37,16 @@
"**/__pycache__": true
},
"isort.args": [
"--settings-file=backend/pyproject.toml"
"--settings-file=pyproject.toml"
],
"isort.path": [
"backend/.venv/bin/python",
".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",
Expand All @@ -57,7 +55,6 @@
"pylint.args": [
"--rcfile=pyproject.toml"
],
"pylint.cwd": "${workspaceFolder}/backend",
"pylint.path": [
".venv/bin/python",
"-m",
Expand All @@ -66,14 +63,14 @@
"python.analysis.extraPaths": [
"../codeforlife-package-python"
],
"python.defaultInterpreterPath": "backend/.venv/bin/python",
"python.testing.cwd": "${workspaceFolder}/backend",
"python.defaultInterpreterPath": ".venv/bin/python",
"python.testing.pytestArgs": [
"-n=auto",
"--cov=api",
"--cov-report=html",
"-c=pyproject.toml",
"."
"api"
],
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"typescript.preferences.quoteStyle": "single"
"python.testing.unittestEnabled": false
}
33 changes: 10 additions & 23 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,22 @@
{
"tasks": [
{
"isBackground": true,
"label": "start-react-dev-server",
"options": {
"env": {
"BROWSER": "none"
}
},
"path": "frontend",
"command": "sudo chmod u+x scripts/setup && scripts/setup",
"label": "setup",
"problemMatcher": [],
"script": "start",
"type": "npm"
"type": "shell"
},
{
"command": "pipenv install --dev",
"label": "pipenv-install-dev",
"options": {
"cwd": "${workspaceFolder}/backend"
},
"command": "sudo chmod u+x scripts/hard-install && scripts/hard-install",
"label": "hard-install",
"problemMatcher": [],
"type": "shell"
},
{
"command": "pipenv run python ./manage.py migrate",
"dependsOn": [
"pipenv-install-dev"
],
"label": "migrate-db",
"options": {
"cwd": "${workspaceFolder}/backend"
},
"command": "sudo chmod u+x scripts/run && scripts/run",
"isBackground": true,
"label": "run",
"problemMatcher": [],
"type": "shell"
}
],
Expand Down
22 changes: 0 additions & 22 deletions codeforlife.code-workspace

This file was deleted.

0 comments on commit 409d822

Please sign in to comment.