|
| 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.155.1/containers/python-3 |
| 3 | +{ |
| 4 | + "name": "python_learning", |
| 5 | + "build": { |
| 6 | + "dockerfile": "Dockerfile", |
| 7 | + "context": "..", |
| 8 | + "args": { |
| 9 | + } |
| 10 | + }, |
| 11 | + |
| 12 | + "runArgs": ["--env-file", ".devcontainer/devcontainer.env"], |
| 13 | + |
| 14 | + "containerUser": "root", |
| 15 | + |
| 16 | + // Set *default* container specific settings.json values on container create. |
| 17 | + "settings": { |
| 18 | + "autoDocstring.docstringFormat": "sphinx", |
| 19 | + "python.pythonPath": "python", |
| 20 | + "python.languageServer": "Pylance", |
| 21 | + "python.linting.enabled": true, |
| 22 | + "python.linting.pylintEnabled": true, |
| 23 | + "python.linting.flake8Path": "/usr/local/bin/flake8", |
| 24 | + "python.linting.pylintPath": "/usr/local/bin/pylint", |
| 25 | + "python.testing.pytestPath": "/usr/local/bin/pytest", |
| 26 | + "python.testing.pytestEnabled": true, |
| 27 | + "python.testing.pytestArgs": ["tests"], |
| 28 | + "terminal.integrated.defaultProfile.linux": "zsh" |
| 29 | + }, |
| 30 | + |
| 31 | + // Add the IDs of extensions you want installed when the container is created. |
| 32 | + "extensions": [ |
| 33 | + "ms-python.python", |
| 34 | + "njpwerner.autodocstring", |
| 35 | + "hediet.vscode-drawio", |
| 36 | + "docsmsft.docs-markdown", |
| 37 | + "streetsidesoftware.code-spell-checker", |
| 38 | + "ms-toolsai.jupyter", |
| 39 | + "ms-toolsai.jupyter-renderers", |
| 40 | + "shuworks.vscode-table-formatter", |
| 41 | + "redhat.vscode-yaml", |
| 42 | + "trond-snekvik.simple-rst" |
| 43 | + ], |
| 44 | + |
| 45 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 46 | + "postCreateCommand": "bash /tmp/config_devcontainer.sh" |
| 47 | +} |
0 commit comments