Skip to content

Commit

Permalink
🧑‍💻 update devcontainer config to python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Oct 12, 2023
1 parent c4f9690 commit 1e5eda2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",

"features": {
"ghcr.io/devcontainers-contrib/features/poetry:1": {}
"ghcr.io/devcontainers-contrib/features/poetry:2": {},
"ghcr.io/devcontainers-contrib/features/fish-apt-get:1": {}
},

// postgres port
Expand All @@ -21,10 +22,11 @@
// disable dotenv auto activate
"python.envFile": "",
"python.analysis.diagnosticMode": "workspace",
"python.analysis.typeCheckingMode": "basic",
"ruff.organizeImports": false,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.codeActionsOnSave": {
"source.fixAll.ruff": true,
"source.organizeImports": true
}
},
Expand Down Expand Up @@ -56,6 +58,7 @@
"ms-python.vscode-pylance",
"ms-python.isort",
"ms-python.black-formatter",
"charliermarsh.ruff",
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode"
]
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3.8"

services:
app:
image: mcr.microsoft.com/devcontainers/universal:2-linux
image: mcr.microsoft.com/devcontainers/python:3.11-bookworm

volumes:
- ../..:/workspaces:cached
Expand Down

0 comments on commit 1e5eda2

Please sign in to comment.