Skip to content

Commit f58e5d1

Browse files
committed
feat: enhance devcontainer with improved Python tooling and shell
1 parent 6440b55 commit f58e5d1

1 file changed

Lines changed: 37 additions & 10 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,46 @@
11
{
2-
"name": "Spark Cluster Optimiser",
3-
"image": "mcr.microsoft.com/vscode/devcontainers/base:ubuntu",
2+
"name": "Spot Optimizer",
3+
"image": "mcr.microsoft.com/devcontainers/python:3.10",
44
"features": {
5-
"python": "3.10.14"
5+
"ghcr.io/devcontainers/features/common-utils:2": {
6+
"installZsh": true,
7+
"configureZshAsDefaultShell": true,
8+
"installOhMyZsh": true
9+
}
610
},
711
"customizations": {
812
"vscode": {
913
"extensions": [
10-
"ms-python.python"
11-
]
12-
},
13-
"settings": {
14-
"terminal.integrated.shell.linux": "/bin/bash"
14+
"ms-python.python",
15+
"ms-python.pylint",
16+
"ms-python.black-formatter",
17+
"ms-toolsai.jupyter",
18+
"ms-vscode.makefile-tools"
19+
],
20+
"settings": {
21+
"python.defaultInterpreterPath": "/usr/local/bin/python",
22+
"python.linting.enabled": true,
23+
"python.linting.pylintEnabled": true,
24+
"python.formatting.provider": "black",
25+
"python.testing.pytestEnabled": true,
26+
"python.testing.unittestEnabled": false,
27+
"python.testing.pytestArgs": [
28+
"tests/"
29+
],
30+
"files.exclude": {
31+
"**/__pycache__": true,
32+
"**/*.pyc": true,
33+
".pytest_cache": true,
34+
"*.egg-info": true
35+
}
36+
}
1537
}
1638
},
17-
"postCreateCommand": "pip install poetry",
18-
"remoteUser": "vscode"
39+
"postCreateCommand": "curl -sSL https://install.python-poetry.org | python3 - && echo 'export PATH=\"$HOME/.local/bin:$PATH\"' >> ~/.bashrc && echo 'export PATH=\"$HOME/.local/bin:$PATH\"' >> ~/.zshrc && make install",
40+
"remoteUser": "vscode",
41+
"mounts": [
42+
"source=${localWorkspaceFolder}/.git,target=/workspaces/${localWorkspaceFolderBasename}/.git,type=bind,consistency=cached"
43+
],
44+
"forwardPorts": [],
45+
"portsAttributes": {}
1946
}

0 commit comments

Comments
 (0)