|
| 1 | +// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: |
| 2 | +// https://github.com/microsoft/vscode-dev-containers/tree/v0.234.0/containers/python-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.10, 3.9, 3.8, 3.7, 3.6 |
| 10 | + // Append -bullseye or -buster to pin to an OS version. |
| 11 | + // Use -bullseye variants on local on arm64/Apple Silicon. |
| 12 | + "VARIANT": "3.9", |
| 13 | + // Options |
| 14 | + "NODE_VERSION": "none" |
| 15 | + } |
| 16 | + }, |
| 17 | + |
| 18 | + // Set *default* container specific settings.json values on container create. |
| 19 | + "settings": { |
| 20 | + "python.defaultInterpreterPath": "/usr/local/bin/python", |
| 21 | + "python.linting.enabled": true, |
| 22 | + "python.linting.pylintEnabled": true, |
| 23 | + "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8", |
| 24 | + "python.formatting.blackPath": "/usr/local/py-utils/bin/black", |
| 25 | + "python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf", |
| 26 | + "python.linting.banditPath": "/usr/local/py-utils/bin/bandit", |
| 27 | + "python.linting.flake8Path": "/usr/local/py-utils/bin/flake8", |
| 28 | + "python.linting.mypyPath": "/usr/local/py-utils/bin/mypy", |
| 29 | + "python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle", |
| 30 | + "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", |
| 31 | + "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint", |
| 32 | + "python.testing.pytestArgs": [ |
| 33 | + "tests/unittests" |
| 34 | + ], |
| 35 | + "python.testing.unittestEnabled": false, |
| 36 | + "python.testing.pytestEnabled": true |
| 37 | + }, |
| 38 | + |
| 39 | + // Add the IDs of extensions you want installed when the container is created. |
| 40 | + "extensions": [ |
| 41 | + "ms-python.python", |
| 42 | + "ms-python.vscode-pylance" |
| 43 | + ], |
| 44 | + |
| 45 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 46 | + // "forwardPorts": [], |
| 47 | + |
| 48 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 49 | + "postCreateCommand": "sudo python -m pip install -U pip && sudo python -m pip install -U -e .[dev] && sudo python setup.py webhost", |
| 50 | + |
| 51 | + // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 52 | + "remoteUser": "vscode", |
| 53 | + |
| 54 | + "features": { |
| 55 | + "dotnet": "latest" |
| 56 | + } |
| 57 | +} |
0 commit comments