devcontainer.json 2.21 KB
Newer Older
bailuo's avatar
readme  
bailuo committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
    "name": "Nixtla Development Environment",
    "image": "mcr.microsoft.com/vscode/devcontainers/python:3.11-bookworm",
    "hostRequirements": {
        "cpus": 4,
        "memory": "16gb",
        "storage": "32gb"
    },
    "customizations": {
        "vscode": {
            "settings": {
                "terminal.integrated.shell.linux": "/bin/bash",
                "python.terminal.activateEnvInCurrentTerminal": true,
                "python.defaultInterpreterPath": ".venv/bin/python",
                "python.pythonPath": ".venv/bin/python",
                "[python]": {
                    "editor.defaultFormatter": "charliermarsh.ruff",
                    "editor.formatOnSave": true,
                    "editor.codeActionsOnSave": {
                        "source.fixAll": "explicit",
                        "source.organizeImports": "explicit"
                    }
                },
                "notebook.python.defaultInterpreterPath": ".venv/bin/python",
                "notebook.codeActionsOnSave": {
                    "source.fixAll": "explicit",
                    "source.organizeImports": "explicit"
                },
                "ruff.nativeServer": "on",
                "python.languageServer": "Default",
                "debug.internalConsoleOptions": "neverOpen",
                "extensions.ignoreRecommendations": true,
                "files.insertFinalNewline": true
            },
            "extensions": [
                "ms-python.python",
                "ms-python.mypy",
                "ms-python.vscode-pylance",
                "ms-toolsai.jupyter@2025.2.0",
                "charliermarsh.ruff@2025.22.0",
                "GitHub.copilot",
                "tamasfe.even-better-toml",
                "anthropic.claude-code@1.0.127"
            ]
        }
    },
    "forwardPorts": [
        8888
    ],
    "containerEnv": {
        "UV_NO_SYNC": "1"
    },
    "onCreateCommand": "make devenv",
    "postCreateCommand": "make init_codespace",
    "waitFor": "postCreateCommand",
    "features": {
        "ghcr.io/devcontainers/features/docker-in-docker:2.12.3": {},
        "ghcr.io/va-h/devcontainers-features/uv:1.1.4": {},
        "ghcr.io/devcontainers/features/node:1.6.3": {}
    }
}