Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 73982a8

Browse files
Create devcontainer.json
1 parent d99a01a commit 73982a8

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

‎.devcontainer/devcontainer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/python:0-3.10",
7+
"features": {
8+
"ghcr.io/devcontainers/features/node:1": {
9+
"nodeGypDependencies": true,
10+
"version": "16"
11+
}
12+
},
13+
"customizations": {
14+
"vscode": {
15+
"settings": {
16+
"editor.defaultFormatter": "esbenp.prettier-vscode",
17+
"workbench.editorAssociations": {
18+
"*.md": "vscode.markdown.preview.editor"
19+
}
20+
},
21+
"extensions": ["learn-pack.learnpack-vscode"]
22+
}
23+
},
24+
"onCreateCommand": "pip3 install pytest==4.6.0 pytest-testdox mock && npm i @learnpack/learnpack@2.1.20 -g && learnpack plugins:install @learnpack/python@1.0.0"
25+
26+
// Features to add to the dev container. More info: https://containers.dev/features.
27+
// "features": {},
28+
29+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
30+
// "forwardPorts": [],
31+
32+
// Use 'postCreateCommand' to run commands after the container is created.
33+
// "postCreateCommand": "pip3 install --user -r requirements.txt",
34+
35+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
36+
// "remoteUser": "root"
37+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /