Skip to content

Commit

Permalink
chore: update devcontainer configuration for Python development tools
Browse files Browse the repository at this point in the history
  • Loading branch information
srijanpatel committed Feb 20, 2025
1 parent 6633cea commit 2833acb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 - \
Expand Down
6 changes: 2 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 2833acb

Please sign in to comment.