Skip to content

Commit 5e4e4fb

Browse files
committed
feat: add devcontainer for py 3.11
1 parent fee7e2a commit 5e4e4fb

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/python
3+
{
4+
"name": "Python 3.11",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/python:3.11",
7+
"features": {
8+
"ghcr.io/warrenbuckley/codespace-features/sqlite:1": {}
9+
},
10+
11+
// Features to add to the dev container. More info: https://containers.dev/features.
12+
// "features": {},
13+
14+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
15+
// "forwardPorts": [],
16+
17+
// Use 'postCreateCommand' to run commands after the container is created.
18+
// "postCreateCommand": "pip3 install --user -r requirements.txt",
19+
20+
// Configure tool-specific properties.
21+
"customizations": {
22+
"vscode": {
23+
"extensions": [
24+
"littlefoxteam.vscode-python-test-adapter",
25+
"jkillian.custom-local-formatters",
26+
"ms-python.vscode-pylance",
27+
"ms-python.python",
28+
"ms-python.debugpy",
29+
"ms-python.black-formatter",
30+
"ms-python.isort",
31+
"ms-toolsai.jupyter"
32+
]
33+
}
34+
}
35+
36+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
37+
// "remoteUser": "root"
38+
}
File renamed without changes.

.devcontainer/devcontainer.json renamed to .devcontainer/py3.6-dev/devcontainer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/python
33
{
4-
"name": "Python 3",
4+
"name": "Python 3.6 For development",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
66
"build": {
77
"dockerfile": "Dockerfile"
@@ -35,7 +35,8 @@
3535
"ms-python.python",
3636
"ms-python.debugpy",
3737
"ms-python.black-formatter",
38-
"ms-python.isort"
38+
"ms-python.isort",
39+
"ms-toolsai.jupyter"
3940
]
4041
}
4142
}

0 commit comments

Comments
 (0)