From 4f01159432502427053f614708815cc3874b2e7e Mon Sep 17 00:00:00 2001 From: Ludeeus Date: Sat, 2 Jan 2021 20:23:50 +0000 Subject: [PATCH] Change devcontainer --- .devcontainer/Dockerfile | 7 ---- .devcontainer/devcontainer.json | 59 +++++++++++++++------------------ 2 files changed, 27 insertions(+), 39 deletions(-) delete mode 100644 .devcontainer/Dockerfile diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile deleted file mode 100644 index 1abf507..0000000 --- a/.devcontainer/Dockerfile +++ /dev/null @@ -1,7 +0,0 @@ -FROM mcr.microsoft.com/vscode/devcontainers/python:0-3.8 -ENV DEBIAN_FRONTEND=noninteractive - -# Install GH CLI -RUN apt-get update \ - \ - && curl -sfSL https://raw.githubusercontent.com/microsoft/vscode-dev-containers/master/script-library/github-debian.sh | bash - \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 319acd9..bf9c540 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,34 +1,29 @@ { - "build": { - "dockerfile": "Dockerfile", - }, - "extensions": [ - "ms-python.python", - "ms-python.vscode-pylance", - "visualstudioexptteam.vscodeintellicode", - "esbenp.prettier-vscode" - ], - "settings": { - "files.eol": "\n", - "editor.tabSize": 4, - "terminal.integrated.shell.linux": "/bin/bash", - "editor.formatOnPaste": false, - "editor.formatOnSave": true, - "editor.formatOnType": true, - "files.trimTrailingWhitespace": true, - "python.pythonPath": "/usr/local/bin/python3", - "python.linting.pylintEnabled": true, - "python.linting.enabled": true, - "python.formatting.provider": "black", - "python.formatting.blackArgs": [ - "--target-version", - "py38" - ], - "python.formatting.blackPath": "/usr/local/bin/black", - "python.linting.banditPath": "/usr/local/bin/bandit", - "python.linting.flake8Path": "/usr/local/bin/flake8", - "python.linting.mypyPath": "/usr/local/bin/mypy", - "python.linting.pylintPath": "/usr/local/bin/pylint", - "python.linting.pydocstylePath": "/usr/local/bin/pydocstyle" - } + "image": "ghcr.io/ludeeus/devcontainer/python:stable", + "context": "..", + "postCreateCommand": "python3 -m pip install -r requirements.txt", + "extensions": [ + "ms-python.python", + "github.vscode-pull-request-github", + "ryanluker.vscode-coverage-gutters", + "ms-python.vscode-pylance" + ], + "settings": { + "files.eol": "\n", + "editor.tabSize": 4, + "terminal.integrated.shell.linux": "/bin/bash", + "python.pythonPath": "/usr/local/python/bin/python", + "python.analysis.autoSearchPaths": false, + "python.linting.pylintEnabled": true, + "python.linting.enabled": true, + "python.linting.pylintArgs": [ + "--disable", + "import-error" + ], + "python.formatting.provider": "black", + "editor.formatOnPaste": false, + "editor.formatOnSave": true, + "editor.formatOnType": true, + "files.trimTrailingWhitespace": true + } } \ No newline at end of file