From 47e729b5fc5a41839e6d9bc706a17ee67c186c65 Mon Sep 17 00:00:00 2001 From: Daniel Ciborowski Date: Sun, 12 Mar 2023 16:58:22 -0400 Subject: [PATCH 1/4] Create --- .devcontainer/Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .devcontainer/Dockerfile diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 00000000..b21fa72d --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,12 @@ +FROM mcr.microsoft.com/devcontainers/python:3 + +RUN python -m pip install --upgrade pip \ + && python -m pip install pytest pytest-cov \ + && python -m pip install 'flit>=3.8.0' + +ENV FLIT_ROOT_INSTALL=1 + +COPY pyproject.toml README.rst ./ +RUN mkdir -p flit \ + && python -m flit install --only-deps --deps develop \ + && rm -r pyproject.toml README.rst flit From c2aa520d3b830668e4485b1e9d7ec2fc541087c9 Mon Sep 17 00:00:00 2001 From: Daniel Ciborowski Date: Sun, 12 Mar 2023 17:01:13 -0400 Subject: [PATCH 2/4] Create --- .devcontainer/devcontainer.json | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..e4eba884 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,31 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: +// https://github.com/microsoft/vscode-dev-containers/tree/v0.222.0/containers/python-3-miniconda +{ + "name": "Python Environment", + "build": { + "dockerfile": "Dockerfile", + "context": ".." + }, + "customizations": { + "vscode": { + "extensions": [ + "editorconfig.editorconfig", + "github.vscode-pull-request-github", + "ms-azuretools.vscode-docker", + "ms-python.python", + "ms-python.vscode-pylance", + "ms-python.flake8", + "ms-vsliveshare.vsliveshare", + "ryanluker.vscode-coverage-gutters", + "bungcip.better-toml", + "GitHub.copilot" + ], + "settings": { + "python.defaultInterpreterPath": "/usr/local/bin/python", + "flake8.path": [ + "/usr/local/py-utils/bin/flake8" + ] + } + } + } +} From 3358f94f0d4392b85582b068d4e4b113bab5a3bd Mon Sep 17 00:00:00 2001 From: Daniel Ciborowski Date: Sun, 12 Mar 2023 17:01:38 -0400 Subject: [PATCH 3/4] Create --- .vscode/settings.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..09add968 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,20 @@ +{ + "editor.formatOnSave": true, + "editor.formatOnPaste": true, + "files.trimTrailingWhitespace": true, + "files.autoSave": "onFocusChange", + "git.autofetch": true, + "[jsonc]": { + "editor.defaultFormatter": "vscode.json-language-features" + }, + "python.defaultInterpreterPath": "/usr/local/bin/python", + "python.formatting.provider": "autopep8", + "python.testing.unittestEnabled": false, + "python.testing.pytestEnabled": true, + "flake8.args": [ + "--config=.flake8" + ], + "flake8.path": [ + "/usr/local/py-utils/bin/flake8" + ] +} From d68e68d37f04e54a19f622b4e81d8ede0b1bf995 Mon Sep 17 00:00:00 2001 From: Daniel Ciborowski Date: Sun, 12 Mar 2023 17:03:46 -0400 Subject: [PATCH 4/4] Update Dockerfile --- .devcontainer/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index b21fa72d..201d55ad 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -10,3 +10,9 @@ COPY pyproject.toml README.rst ./ RUN mkdir -p flit \ && python -m flit install --only-deps --deps develop \ && rm -r pyproject.toml README.rst flit + +// ENV FLIT_ALLOW_INVALID=1 + +// COPY pyproject.toml . +// RUN python -m flit install --only-deps --deps develop \ +// && rm -r pyproject.toml