Skip to content

Commit c92dbb1

Browse files
committed
Use proper devcontainers schema for vscode customisations
1 parent 48f5099 commit c92dbb1

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

.devcontainer/devcontainer.json

+22-21
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,30 @@
2424
// risk to running the build directly on the host.
2525
// "runArgs": ["--privileged", "-v", "/dev/bus/usb:/dev/bus/usb", "--group-add", "dialout"],
2626

27-
// Set *default* container specific settings.json values on container create.
28-
"settings": {
29-
"terminal.integrated.shell.linux": "/bin/bash",
30-
"python.pythonPath": "/usr/local/bin/python",
31-
"python.linting.enabled": true,
32-
"python.linting.pylintEnabled": true,
33-
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
34-
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
35-
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
36-
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
37-
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
38-
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
39-
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
40-
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
41-
"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+
}
4249
},
4350

44-
// Add the IDs of extensions you want installed when the container is created.
45-
"extensions": [
46-
"ms-python.python",
47-
"platformio.platformio-ide"
48-
],
49-
5051
// Use 'forwardPorts' to make a list of ports inside the container available locally.
5152
// "forwardPorts": [],
5253

0 commit comments

Comments
 (0)