-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdevcontainer.json
More file actions
44 lines (44 loc) · 1.62 KB
/
devcontainer.json
File metadata and controls
44 lines (44 loc) · 1.62 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
{
"name": "Dev AI API Server",
"dockerComposeFile": [
"../docker/docker-compose.yml"
],
"service": "dev",
"remoteUser": "developer",
"workspaceFolder": "/home/developer/workspace",
"remoteEnv": {
"UV_LINK_MODE": "copy"
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-toolsai.jupyter",
"mhutchie.git-graph",
"ms-azuretools.vscode-docker",
"charliermarsh.ruff"
],
"settings": {
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit",
"source.fixAll": "explicit"
}
},
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
"ruff.path": [
"${workspaceFolder}/.venv/bin/ruff"
],
"ruff.organizeImports": true
}
}
},
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"moby": true
}
},
"postCreateCommand": "bash -lc 'uv venv && if [ -f pyproject.toml ]; then uv sync --all-groups; else if [ -f requirements-dev.txt ]; then uv pip install -r requirements-dev.txt; elif [ -f requirements.txt ]; then uv pip install -r requirements.txt; fi; fi && if [ -f .pre-commit-config.yaml ]; then uv run pre-commit install; fi'"
}