feat: Added python devcontainer

This commit is contained in:
2026-04-14 18:17:15 +01:00
parent 4fdab0225f
commit 51f1bef505

View File

@@ -1,18 +1,19 @@
{ {
"name": "Rust", "name": "Python",
"runArgs": [ "runArgs": [
"--network=host" "--network=host"
], ],
"image": "git.luke-else.co.uk/luke-else/rust-dev:latest", "image": "git.luke-else.co.uk/luke-else/python-dev:latest",
"remoteUser": "dev", "remoteUser": "dev",
"customizations": { "customizations": {
"vscode": { "vscode": {
"settings": { "settings": {
"editor.formatOnSave": true, "editor.formatOnSave": true,
"[rust]": { "[python]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer" "editor.defaultFormatter": "ms-python.black-formatter"
}, },
"rust-analyzer.cargo.runBuildScripts": true, "python.defaultInterpreterPath": "/usr/local/bin/python",
"python.analysis.typeCheckingMode": "basic",
"remote.autoForwardPorts": false, "remote.autoForwardPorts": false,
"terminal.integrated.profiles.linux": { "terminal.integrated.profiles.linux": {
"tmux-shell": { "tmux-shell": {
@@ -26,17 +27,16 @@
} }
}, },
"terminal.integrated.defaultProfile.linux": "tmux-shell" "terminal.integrated.defaultProfile.linux": "tmux-shell"
}, }
"extensions": [ },
"ms-azuretools.vscode-docker", "extensions": [
"rust-lang.rust-analyzer", "ms-azuretools.vscode-docker",
"tamasfe.even-better-toml", "ms-python.python",
"vadimcn.vscode-lldb", "ms-python.vscode-pylance",
"dustypomerleau.rust-syntax", "ms-python.black-formatter",
"chrisbeard.rustdocstring", "charliermarsh.ruff",
"mermaidchart.vscode-mermaid-chart" "mermaidchart.vscode-mermaid-chart"
] ]
}
}, },
"postCreateCommand": "cargo fetch" "postCreateCommand": "uv sync"
} }