1
- {"image" :" mcr.microsoft.com/devcontainers/universal:2" }
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:1-3.11-bullseye",
7
+ "build" : {
8
+ "dockerfile" : " Dockerfile" ,
9
+ "context" : " .." ,
10
+ "args" : {
11
+ // Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6
12
+ // Append -bullseye or -buster to pin to an OS version.
13
+ // Use -bullseye variants on local on arm64/Apple Silicon.
14
+ "VARIANT" : " 3.10-bullseye" ,
15
+ // Options
16
+ "NODE_VERSION" : " lts/*"
17
+ }
18
+ },
19
+
20
+ // Features to add to the dev container. More info: https://containers.dev/features.
21
+ // "features": {},
22
+
23
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
24
+ // "forwardPorts": [],
25
+
26
+ // Use 'postCreateCommand' to run commands after the container is created.
27
+ // "postCreateCommand": "pip3 install --user -r requirements.txt", #'mkdocs-material[imaging]'
28
+ "postCreateCommand" : " pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git --user -r requirements.txt" ,
29
+
30
+ // Configure tool-specific properties.
31
+ "customizations" : {
32
+ "vscode" : {
33
+ // Set *default* container specific settings.json values on container create.
34
+ "settings" : {
35
+ "python.defaultInterpreterPath" : " /home/vscode/venv/bin/python" ,
36
+ "python.linting.enabled" : true ,
37
+ "python.linting.pylintEnabled" : false ,
38
+ "python.formatting.autopep8Path" : " /usr/local/py-utils/bin/autopep8" ,
39
+ "python.formatting.blackPath" : " /usr/local/py-utils/bin/black" ,
40
+ "python.formatting.yapfPath" : " /usr/local/py-utils/bin/yapf" ,
41
+ "python.linting.banditPath" : " /usr/local/py-utils/bin/bandit" ,
42
+ "python.linting.flake8Path" : " /usr/local/py-utils/bin/flake8" ,
43
+ "python.linting.flake8Enabled" : true ,
44
+ "python.linting.mypyPath" : " /usr/local/py-utils/bin/mypy" ,
45
+ "python.linting.pycodestylePath" : " /usr/local/py-utils/bin/pycodestyle" ,
46
+ "python.linting.pydocstylePath" : " /usr/local/py-utils/bin/pydocstyle" ,
47
+ "python.linting.pylintPath" : " /usr/local/py-utils/bin/pylint"
48
+ },
49
+ "extensions" : [
50
+ " ms-python.python" ,
51
+ " ms-python.vscode-pylance" ,
52
+ " ms-python.black-formatter" ,
53
+ " ms-azuretools.vscode-docker"
54
+ ]
55
+ }
56
+ },
57
+
58
+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
59
+ "remoteUser" : " vscode"
60
+ }
0 commit comments