|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: |
2 | 2 | // https://github.com/microsoft/vscode-dev-containers/tree/v0.194.0/containers/python-3 |
3 | 3 | { |
4 | | - "name": "Python 3", |
5 | | - "build": { |
6 | | - "dockerfile": "Dockerfile", |
7 | | - "context": "..", |
8 | | - "args": { |
9 | | - // Update 'VARIANT' to pick a Python version: 3, 3.6, 3.7, 3.8, 3.9 |
10 | | - "VARIANT": "3.9", |
11 | | - // Options |
12 | | - "NODE_VERSION": "lts/*" |
13 | | - } |
14 | | - }, |
| 4 | + "name": "Python 3", |
| 5 | + "build": { |
| 6 | + "dockerfile": "Dockerfile", |
| 7 | + "context": "..", |
| 8 | + "args": { |
| 9 | + // Update 'VARIANT' to pick a Python version: 3, 3.6, 3.7, 3.8, 3.9 |
| 10 | + "VARIANT": "3.9", |
| 11 | + // Options |
| 12 | + "NODE_VERSION": "lts/*" |
| 13 | + } |
| 14 | + }, |
15 | 15 |
|
16 | | - // Set *default* container specific settings.json values on container create. |
17 | | - "settings": { |
18 | | - "python.pythonPath": "/usr/local/bin/python", |
19 | | - "python.languageServer": "Pylance", |
20 | | - "python.linting.enabled": true, |
21 | | - "python.linting.pylintEnabled": true, |
22 | | - "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8", |
23 | | - "python.formatting.blackPath": "/usr/local/py-utils/bin/black", |
24 | | - "python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf", |
25 | | - "python.linting.banditPath": "/usr/local/py-utils/bin/bandit", |
26 | | - "python.linting.flake8Path": "/usr/local/py-utils/bin/flake8", |
27 | | - "python.linting.mypyPath": "/usr/local/py-utils/bin/mypy", |
28 | | - "python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle", |
29 | | - "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", |
30 | | - "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint" |
31 | | - }, |
| 16 | + // Set *default* container specific settings.json values on container create. |
| 17 | + "settings": { |
| 18 | + "python.pythonPath": "/usr/local/bin/python", |
| 19 | + "python.languageServer": "Pylance", |
| 20 | + "python.linting.enabled": true, |
| 21 | + "python.linting.pylintEnabled": true, |
| 22 | + "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8", |
| 23 | + "python.formatting.blackPath": "/usr/local/py-utils/bin/black", |
| 24 | + "python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf", |
| 25 | + "python.linting.banditPath": "/usr/local/py-utils/bin/bandit", |
| 26 | + "python.linting.flake8Path": "/usr/local/py-utils/bin/flake8", |
| 27 | + "python.linting.mypyPath": "/usr/local/py-utils/bin/mypy", |
| 28 | + "python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle", |
| 29 | + "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", |
| 30 | + "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint" |
| 31 | + }, |
32 | 32 |
|
33 | | - // Add the IDs of extensions you want installed when the container is created. |
34 | | - "extensions": [ |
35 | | - "ms-python.python", |
36 | | - "ms-python.vscode-pylance" |
37 | | - ], |
| 33 | + // Add the IDs of extensions you want installed when the container is created. |
| 34 | + "extensions": ["ms-python.python", "ms-python.vscode-pylance"], |
38 | 35 |
|
39 | | - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
40 | | - // "forwardPorts": [], |
| 36 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 37 | + // "forwardPorts": [], |
41 | 38 |
|
42 | | - // Use 'postCreateCommand' to run commands after the container is created. |
43 | | - // "postCreateCommand": "pip3 install --user -r requirements.txt", |
| 39 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 40 | + // "postCreateCommand": "pip3 install --user -r requirements.txt", |
44 | 41 |
|
45 | | - // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
46 | | - "remoteUser": "vscode" |
| 42 | + // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 43 | + "remoteUser": "vscode" |
47 | 44 | } |
0 commit comments