-
Notifications
You must be signed in to change notification settings - Fork 149
Expand file tree
/
Copy pathdevcontainer.json
More file actions
51 lines (51 loc) · 1.68 KB
/
devcontainer.json
File metadata and controls
51 lines (51 loc) · 1.68 KB
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
{
"name": "msgspec",
"build": {
"cacheFrom": "ghcr.io/msgspec/msgspec",
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"settings": {
"python.defaultInterpreterPath": "/home/vscode/.local/share/msgspec/dev/venvs/test/bin/python",
"python.testing.pytestEnabled": true,
"[python]": {
"editor.codeActionsOnSave": {
"source.fixAll.ruff": "explicit",
"source.organizeImports.ruff": "explicit"
},
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.formatOnSave": true
},
"ruff.configurationPreference": "filesystemFirst",
"ruff.importStrategy": "fromEnvironment",
"ruff.interpreter": ["/home/vscode/.local/share/msgspec/dev/venvs/test/bin/python"]
},
"extensions": [
"charliermarsh.ruff",
"github.vscode-github-actions",
"ms-python.python",
"ms-vscode.cpptools",
"nefrob.vscode-just-syntax",
"tamasfe.even-better-toml",
"yzhang.markdown-all-in-one"
]
}
},
"postCreateCommand": {
"sync-deps": ["zsh", "-c", "just env-sync test && just env-sync hooks"],
"git-safe-directory": ["git", "config", "--global", "--add", "safe.directory", "/workspaces/${localWorkspaceFolderBasename}"]
},
"remoteEnv": {
"PYTHONUNBUFFERED": "1",
"PYTHONDONTWRITEBYTECODE": "1",
"UV_MANAGED_PYTHON": "1"
},
// Defaults for the base Ubuntu image:
// https://github.com/devcontainers/images/blob/main/src/base-ubuntu/.devcontainer/devcontainer.json
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"configureZshAsDefaultShell": true
}
}
}