|
| 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.187.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.6, 3.7, 3.8, 3.9 |
| 10 | + "VARIANT": "3.9.0-buster", |
| 11 | + // Options |
| 12 | + "INSTALL_NODE": "false", |
| 13 | + "NODE_VERSION": "lts/*" |
| 14 | + } |
| 15 | + }, |
| 16 | + |
| 17 | + // Set *default* container specific settings.json values on container create. |
| 18 | + "settings": { |
| 19 | + "python.pythonPath": "/usr/local/bin/python", |
| 20 | + "python.languageServer": "Pylance", |
| 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 | + }, |
| 33 | + |
| 34 | + // Add the IDs of extensions you want installed when the container is created. |
| 35 | + "extensions": [ |
| 36 | + "ms-python.python", |
| 37 | + "ms-python.vscode-pylance", |
| 38 | + "platformio.platformio-ide", |
| 39 | + "marlinfirmware.auto-build", |
| 40 | + "editorconfig.editorconfig" |
| 41 | + ], |
| 42 | + |
| 43 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 44 | + // "forwardPorts": [], |
| 45 | + |
| 46 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 47 | + // "postCreateCommand": "pip3 install --user -r requirements.txt", |
| 48 | + |
| 49 | + // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 50 | + // "remoteUser": "vscode" |
| 51 | +} |
0 commit comments