|
| 1 | +{ |
| 2 | + "name": "Python 3", |
| 3 | + "dockerComposeFile": "docker-compose.yml", |
| 4 | + "service": "app", |
| 5 | + "workspaceFolder": "/workspace", |
| 6 | + |
| 7 | + // Set *default* container specific settings.json values on container create. |
| 8 | + "settings": { |
| 9 | + "terminal.integrated.profiles.linux": { |
| 10 | + "bash": { |
| 11 | + "path": "/bin/bash" |
| 12 | + } |
| 13 | + }, |
| 14 | + "terminal.integrated.defaultProfile.linux": "bash", |
| 15 | + "python.pythonPath": "/usr/local/bin/python", |
| 16 | + "python.languageServer": "Pylance", |
| 17 | + "python.linting.enabled": true, |
| 18 | + "python.linting.pylintEnabled": true, |
| 19 | + "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8", |
| 20 | + "python.formatting.blackPath": "/usr/local/py-utils/bin/black", |
| 21 | + "python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf", |
| 22 | + "python.linting.banditPath": "/usr/local/py-utils/bin/bandit", |
| 23 | + "python.linting.flake8Path": "/usr/local/py-utils/bin/flake8", |
| 24 | + "python.linting.mypyPath": "/usr/local/py-utils/bin/mypy", |
| 25 | + "python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle", |
| 26 | + "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", |
| 27 | + "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint" |
| 28 | + }, |
| 29 | + |
| 30 | + // Add the IDs of extensions you want installed when the container is created. |
| 31 | + "extensions": [ |
| 32 | + "ms-python.python", |
| 33 | + "ms-python.vscode-pylance", |
| 34 | + "ms-toolsai.jupyter", |
| 35 | + "ms-toolsai.jupyter-keymap" |
| 36 | + ], |
| 37 | + |
| 38 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 39 | + "postCreateCommand": "pip install -e .[develop]", |
| 40 | + |
| 41 | + // Use 'initializeCommand' to run commands before the container is created. |
| 42 | + "initializeCommand": [".devcontainer/initializeCommand"], |
| 43 | + |
| 44 | + // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 45 | + "remoteUser": "vscode", |
| 46 | + |
| 47 | + // for git submodules: https://docs.github.com/ja/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces |
| 48 | + "customizations": { |
| 49 | + "codespaces": { |
| 50 | + "repositories": { |
| 51 | + "SonySemiconductorSolutions/aitrios-sdk-console-access-lib-python": { |
| 52 | + "permissions": { |
| 53 | + "contents": "read" |
| 54 | + } |
| 55 | + } |
| 56 | + } |
| 57 | + } |
| 58 | + } |
| 59 | +} |
0 commit comments