-
Notifications
You must be signed in to change notification settings - Fork 1
/
.devcontainer.json
63 lines (63 loc) · 2.58 KB
/
.devcontainer.json
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
62
63
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/python-3
{
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
"extensions": [
"charliermarsh.ruff",
"eamodio.gitlens",
"github.vscode-pull-request-github",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.mypy-type-checker",
"ms-vscode.makefile-tools",
"ryanluker.vscode-coverage-gutters",
"visualstudioexptteam.vscodeintellicode"
],
// Set *default* container specific settings.json values on container create.
"settings": {
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
},
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.tabSize": 4,
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.typeCheckingMode": "basic",
"python.defaultInterpreterPath": "/home/vscode/.local/venv/bin/python",
"python.languageServer": "Pylance",
"python.pythonPath": "/home/vscode/.local/venv/bin/python",
"python.terminal.activateEnvInCurrentTerminal": true,
"python.testing.pytestArgs": ["--no-cov"],
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/usr/bin/zsh"
}
}
}
}
},
// Add the IDs of extensions you want installed when the container is created.
"features": {},
"image": "mcr.microsoft.com/devcontainers/base:debian",
"name": "webrtc-models",
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "curl -LsSf https://astral.sh/uv/install.sh | sh && uv sync --frozen --dev && pre-commit install",
"postStartCommand": "uv sync --dev",
"remoteEnv": {
"UV_PROJECT_ENVIRONMENT": "/home/vscode/.local/venv",
"PATH": "/home/vscode/.cargo/bin:/home/vscode/.local/venv/bin:${containerEnv:PATH}"
},
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode",
"runArgs": ["-e", "GIT_EDITOR=code --wait"]
}