-
Notifications
You must be signed in to change notification settings - Fork 5k
Expand file tree
/
Copy pathdevcontainer.json
More file actions
30 lines (26 loc) · 1.19 KB
/
devcontainer.json
File metadata and controls
30 lines (26 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
"name": "Python 3",
"build": { "dockerfile": "Dockerfile",
"context": "..",
"args": {"VARIANT": "3.10"}
},
// Set *default* container specific settings.json values on container create.
"settings": {
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint"
},
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// In order to speed up install, we used a requirements.txt when building the Dockerfile
"postCreateCommand": "pip3 install --user -e .[dev,test]",
// Configure tool-specific properties.
"customizations": {"vscode": {"extensions": ["ms-python.python","ms-python.vscode-pylance"]}}
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}