Skip to content

Commit 34453bb

Browse files
committed
Adapt devcontainer.json to use recommended container settings instead of deprecated ones.
1 parent 624c446 commit 34453bb

File tree

1 file changed

+27
-22
lines changed

1 file changed

+27
-22
lines changed

.devcontainer/devcontainer.json

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,30 @@
55
"context": "..",
66
"dockerFile": "../Dockerfile",
77

8-
// Use 'settings' to set *default* container specific settings.json values on container create.
9-
// You can edit these settings after create using File > Preferences > Settings > Remote.
10-
"settings": {
11-
"terminal.integrated.shell.linux": "/bin/bash",
12-
"python.pythonPath": "/usr/local/bin/python",
13-
"python.formatting.provider": "black",
14-
"python.linting.enabled": true,
15-
"python.linting.flake8Enabled": true,
16-
"python.linting.pylintEnabled": false,
17-
"python.linting.mypyEnabled": true,
18-
"python.testing.pytestEnabled": true,
19-
"python.testing.pytestArgs": [
20-
"pandas"
21-
]
22-
},
23-
24-
// Add the IDs of extensions you want installed when the container is created in the array below.
25-
"extensions": [
26-
"ms-python.python",
27-
"ms-vscode.cpptools"
28-
]
29-
}
8+
// Use `customizations/vscode/settings` to set *default* container specific
9+
// settings.json values on container create. You can edit these settings
10+
// after create using File > Preferences > Settings > Remote.
11+
"customizations": {
12+
"vscode": {
13+
"settings": {
14+
"terminal.integrated.defaultProfile.linux": "bash",
15+
"python.pythonPath": "/usr/local/bin/python",
16+
"python.formatting.provider": "black",
17+
"python.linting.enabled": true,
18+
"python.linting.flake8Enabled": true,
19+
"python.linting.pylintEnabled": false,
20+
"python.linting.mypyEnabled": true,
21+
"python.testing.pytestEnabled": true,
22+
"python.testing.pytestArgs": [
23+
"pandas"
24+
],
25+
// Add the IDs of extensions you want installed when the
26+
// container is created in the array below.
27+
"extensions": [
28+
"ms-python.python",
29+
"ms-vscode.cpptools"
30+
]
31+
}
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)