|
5 | 5 | "context": "..", |
6 | 6 | "args": { |
7 | 7 | // Update 'VARIANT' to pick a Python version: 3, 3.6, 3.7, 3.8, 3.9 |
8 | | - "VARIANT": "3", |
9 | | - // Options |
10 | | - "INSTALL_NODE": "true", |
11 | | - "NODE_VERSION": "lts/*" |
| 8 | + "VARIANT": "3" |
12 | 9 | } |
13 | 10 | }, |
14 | 11 |
|
|
27 | 24 | // risk to running the build directly on the host. |
28 | 25 | // "runArgs": ["--privileged", "-v", "/dev/bus/usb:/dev/bus/usb", "--group-add", "dialout"], |
29 | 26 |
|
30 | | - // Set *default* container specific settings.json values on container create. |
31 | | - "settings": { |
32 | | - "terminal.integrated.shell.linux": "/bin/bash", |
33 | | - "python.pythonPath": "/usr/local/bin/python", |
34 | | - "python.linting.enabled": true, |
35 | | - "python.linting.pylintEnabled": true, |
36 | | - "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8", |
37 | | - "python.formatting.blackPath": "/usr/local/py-utils/bin/black", |
38 | | - "python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf", |
39 | | - "python.linting.banditPath": "/usr/local/py-utils/bin/bandit", |
40 | | - "python.linting.flake8Path": "/usr/local/py-utils/bin/flake8", |
41 | | - "python.linting.mypyPath": "/usr/local/py-utils/bin/mypy", |
42 | | - "python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle", |
43 | | - "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", |
44 | | - "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint" |
| 27 | + "customizations": { |
| 28 | + "vscode": { |
| 29 | + "settings": { |
| 30 | + "terminal.integrated.shell.linux": "/bin/bash", |
| 31 | + "python.pythonPath": "/usr/local/bin/python", |
| 32 | + "python.linting.enabled": true, |
| 33 | + "python.linting.pylintEnabled": true, |
| 34 | + "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8", |
| 35 | + "python.formatting.blackPath": "/usr/local/py-utils/bin/black", |
| 36 | + "python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf", |
| 37 | + "python.linting.banditPath": "/usr/local/py-utils/bin/bandit", |
| 38 | + "python.linting.flake8Path": "/usr/local/py-utils/bin/flake8", |
| 39 | + "python.linting.mypyPath": "/usr/local/py-utils/bin/mypy", |
| 40 | + "python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle", |
| 41 | + "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", |
| 42 | + "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint" |
| 43 | + }, |
| 44 | + "extensions": [ |
| 45 | + "ms-python.python", |
| 46 | + "platformio.platformio-ide" |
| 47 | + ] |
| 48 | + } |
45 | 49 | }, |
46 | 50 |
|
47 | | - // Add the IDs of extensions you want installed when the container is created. |
48 | | - "extensions": [ |
49 | | - "ms-python.python", |
50 | | - "platformio.platformio-ide" |
51 | | - ], |
52 | | - |
53 | 51 | // Use 'forwardPorts' to make a list of ports inside the container available locally. |
54 | 52 | // "forwardPorts": [], |
55 | 53 |
|
56 | 54 | // Use 'postCreateCommand' to run commands after the container is created. |
57 | | - "postCreateCommand": "npm install", |
| 55 | + "postCreateCommand": "bash -i -c 'nvm install && npm ci'", |
58 | 56 |
|
59 | 57 | // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
60 | 58 | "remoteUser": "vscode" |
|
0 commit comments