From 1d5486e77dbc7342b3069e14492880553c9b50c8 Mon Sep 17 00:00:00 2001 From: Tony Lampada Date: Sun, 17 Sep 2023 22:36:24 +0000 Subject: [PATCH] add black formatting to devcontainer --- .devcontainer/devcontainer.json | 3 ++- .vscode/settings.json | 7 ++++++- Dockerfile.dev | 4 +++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 4944a879..5557445a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -7,7 +7,8 @@ "customizations": { "vscode": { "extensions": [ - "ms-python.python" + "ms-python.python", + "ms-python.black-formatter" ], "settings": { "extensions.verifySignature": false diff --git a/.vscode/settings.json b/.vscode/settings.json index 0fe31bb7..c831f022 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,5 +9,10 @@ "python.testing.unittestEnabled": true, "python.testing.pytestArgs": [ "." - ] + ], + "editor.formatOnSave": true, + "[python]": { + "editor.defaultFormatter": "ms-python.black-formatter" + }, + "python.formatting.provider": "none" } \ No newline at end of file diff --git a/Dockerfile.dev b/Dockerfile.dev index 34e31607..1536f7c5 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -3,5 +3,7 @@ RUN apt-get update && apt-get install -y make libgl1-mesa-glx && rm -rf /var/lib WORKDIR /roboflow-python COPY .devcontainer/bashrc_ext /root/bashrc_ext RUN echo "source /root/bashrc_ext" >> ~/.bashrc -COPY . . +COPY ./setup.py ./pyproject.toml ./README.md ./requirements.txt ./ +COPY roboflow/__init__.py ./roboflow/__init__.py RUN pip install -e ".[dev]" +COPY . .