|
| 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.231.5/containers/ubuntu |
| 3 | +{ |
| 4 | + "name": "Ubuntu", |
| 5 | + "build": { |
| 6 | + "dockerfile": "Dockerfile", |
| 7 | + // Update 'VARIANT' to pick an Ubuntu version: hirsute, focal, bionic |
| 8 | + // Use hirsute or bionic on local arm64/Apple Silicon. |
| 9 | + "args": { |
| 10 | + "VARIANT": "focal" |
| 11 | + } |
| 12 | + }, |
| 13 | + // Set *default* container specific settings.json values on container create. |
| 14 | + "settings": { |
| 15 | + "[python]": { |
| 16 | + "editor.codeActionsOnSave": { |
| 17 | + "source.organizeImports": true, |
| 18 | + "editor.formatOnSave": true, |
| 19 | + }, |
| 20 | + "editor.formatOnSave": true, // Required to actually format on save |
| 21 | + }, |
| 22 | + "editor.rulers": [ |
| 23 | + 80, // default color or as customized (with "editorRuler.foreground") |
| 24 | + { |
| 25 | + "column": 88, |
| 26 | + "color": "#ff000065" |
| 27 | + }, |
| 28 | + ], |
| 29 | + "python.defaultInterpreterPath": "/usr/local/python/bin/python", |
| 30 | + "python.formatting.provider": "black", |
| 31 | + "python.linting.mypyEnabled": true, |
| 32 | + "python.linting.mypyPath": "mypy", |
| 33 | + "python.linting.mypyArgs": [ |
| 34 | + "--follow-imports=silent", |
| 35 | + "--ignore-missing-imports", |
| 36 | + "--show-column-numbers", |
| 37 | + "--show-error-codes" |
| 38 | + ], |
| 39 | + "python.linting.ignorePatterns": [ |
| 40 | + "**/site-packages/", |
| 41 | + ".vscode/*.py", |
| 42 | + "**/.tox/", |
| 43 | + "*.pyi", |
| 44 | + "**/dist/" |
| 45 | + ], |
| 46 | + "search.exclude": { |
| 47 | + "**/build/lib/*": true, |
| 48 | + "**/dist/*": true, |
| 49 | + }, |
| 50 | + "python.testing.pytestArgs": [ |
| 51 | + "--no-cov", |
| 52 | + "-v", |
| 53 | + "tests/" |
| 54 | + ], |
| 55 | + "python.testing.pytestEnabled": true, |
| 56 | + "python.testing.pytestPath": "pytest", |
| 57 | + }, |
| 58 | + // Add the IDs of extensions you want installed when the container is created. |
| 59 | + "extensions": [ |
| 60 | + "njpwerner.autodocstring", |
| 61 | + "yzhang.markdown-all-in-one", |
| 62 | + "ms-python.python", |
| 63 | + "littlefoxteam.vscode-python-test-adapter", |
| 64 | + "ms-vscode-remote.remote-containers", |
| 65 | + "hbenl.vscode-test-explorer", |
| 66 | + "trond-snekvik.simple-rst", |
| 67 | + "wayou.vscode-todo-highlight", |
| 68 | + "ms-azuretools.vscode-docker" |
| 69 | + ], |
| 70 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 71 | + "forwardPorts": [ |
| 72 | + // The jira server instance we run via docker is exposed on: |
| 73 | + 2990 |
| 74 | + ], |
| 75 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 76 | + "postCreateCommand": "./.devcontainer/post_create.sh", |
| 77 | + // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 78 | + // "remoteUser": "vscode", |
| 79 | + "features": { |
| 80 | + "docker-in-docker": "latest", |
| 81 | + "git": "latest", |
| 82 | + "python": "3.10" |
| 83 | + } |
| 84 | +} |
0 commit comments