From b94ab204d8f7b6c43345867df4648a5b6e05e9f9 Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Thu, 1 Feb 2024 11:46:18 +0100 Subject: [PATCH] dx: Un-ignore .vscode --- .gitignore | 1 - .vscode/extensions.json | 5 +++++ .vscode/launch.json | 20 ++++++++++++++++++++ .vscode/settings.json | 5 +++++ .vscode/tasks.json | 27 +++++++++++++++++++++++++++ 5 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 .vscode/extensions.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.gitignore b/.gitignore index 12fea24..c051866 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,6 @@ postgres-hstore/ docker-compose.override.yml build_static .venv -.vscode __pycache__ diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..e6f2364 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "ms-vscode-remote.remote-containers" + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..6cc7c2a --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,20 @@ +{ + // 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": [ + { + "name": "Python: Django", + "type": "python", + "request": "launch", + "program": "${workspaceFolder}/manage.py", + "args": [ + "runserver", + "0.0.0.0:8000", + ], + "django": true, + "justMyCode": true + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..70a2f9b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "[python]": { + "editor.defaultFormatter": "ms-python.black-formatter" + }, +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..12d4aeb --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,27 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "migrate", + "type": "shell", + "command": "${workspaceFolder}/manage.py migrate" + }, + { + "label": "makemigrations", + "type": "shell", + "command": "${workspaceFolder}/manage.py makemigrations" + }, + { + "label": "runserver", + "type": "shell", + "command": "${workspaceFolder}/manage.py runserver" + }, + { + "label": "collectstatic", + "type": "shell", + "command": "${workspaceFolder}/manage.py collectstatic" + } + ] +}