From 2833acbc2c29e8b7ddb0c6af42604bedd98ef6ae Mon Sep 17 00:00:00 2001 From: Srijan Patel Date: Thu, 20 Feb 2025 20:27:02 +0000 Subject: [PATCH] chore: update devcontainer configuration for Python development tools --- .devcontainer/Dockerfile | 6 ++++-- .devcontainer/devcontainer.json | 6 ++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 12b0995b..78b5d5e7 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -9,8 +9,10 @@ RUN apt-get update && apt-get install -y \ vim \ && rm -rf /var/lib/apt/lists/* -COPY backend/pyproject.toml ./backend/ -RUN pip install ./backend/ +RUN pip install uv + +COPY backend/ backend/ +RUN uv pip install --system -e /pyspur/backend/ # Install Node.js for frontend development RUN curl -fsSL https://deb.nodesource.com/setup_23.x | bash - \ diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 9e1b5b78..f1677255 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -25,8 +25,6 @@ "github.copilot-chat", // Backend extensions "ms-python.python", - "ms-python.black-formatter", - "ms-python.pylance", "charliermarsh.ruff", "tamasfe.even-better-toml", // Frontend extensions @@ -44,7 +42,7 @@ // Python linting and formatting "python.linting.enabled": true, - "python.linting.mypyEnabled": true, + "python.linting.mypyEnabled": false, "python.linting.ruffEnabled": true, // TypeScript settings @@ -57,7 +55,7 @@ "[python]": { "editor.formatOnType": true, "editor.formatOnSave": true, - "editor.defaultFormatter": "ms-python.black-formatter", + "editor.defaultFormatter": "charliermarsh.ruff", "editor.codeActionsOnSave": { "source.organizeImports": "always", "source.fixAll.ruff": "always"