|
| 1 | +{ |
| 2 | + "name": "Python 3 with UV", |
| 3 | + "dockerComposeFile": "docker-compose.yml", |
| 4 | + "service": "cli", |
| 5 | + "workspaceFolder": "/workspaces/laygo", |
| 6 | + |
| 7 | + "features": { |
| 8 | + "ghcr.io/devcontainers/features/common-utils:2": { |
| 9 | + "upgradePackages": true |
| 10 | + }, |
| 11 | + "ghcr.io/devcontainers/features/git:1": {}, |
| 12 | + "ghcr.io/devcontainers/features/github-cli:1": {} |
| 13 | + }, |
| 14 | + |
| 15 | + "postCreateCommand": "curl -LsSf https://astral.sh/uv/install.sh | sh && export PATH=\"$HOME/.cargo/bin:$PATH\" && uv sync --extra dev && uv pip install -e .", |
| 16 | + |
| 17 | + // Configure tool-specific properties. |
| 18 | + "customizations": { |
| 19 | + "vscode": { |
| 20 | + "settings": { |
| 21 | + "python.defaultInterpreterPath": ".venv/bin/python", |
| 22 | + "python.terminal.activateEnvironment": true, |
| 23 | + "python.linting.enabled": true, |
| 24 | + "editor.formatOnSave": true, |
| 25 | + "editor.defaultFormatter": "charliermarsh.ruff", |
| 26 | + "[python]": { |
| 27 | + "editor.formatOnSave": true, |
| 28 | + "editor.defaultFormatter": "charliermarsh.ruff", |
| 29 | + "editor.tabSize": 2, |
| 30 | + "editor.indentSize": 2, |
| 31 | + "editor.insertSpaces": true, |
| 32 | + "editor.codeActionsOnSave": { |
| 33 | + "source.fixAll.ruff": "explicit", |
| 34 | + "source.organizeImports.ruff": "explicit" |
| 35 | + } |
| 36 | + } |
| 37 | + }, |
| 38 | + "extensions": [ |
| 39 | + "ms-python.python", |
| 40 | + "ms-python.vscode-pylance", |
| 41 | + "charliermarsh.ruff", |
| 42 | + "ms-toolsai.jupyter", |
| 43 | + "ms-vscode.makefile-tools", |
| 44 | + "github.vscode-github-actions" |
| 45 | + ] |
| 46 | + } |
| 47 | + }, |
| 48 | + |
| 49 | + // Forward ports for potential web servers or APIs |
| 50 | + // "forwardPorts": [8000, 8080], |
| 51 | + |
| 52 | + // Uncomment to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 53 | + // "remoteUser": "root", |
| 54 | + |
| 55 | + // Mount the workspace folder and preserve file permissions |
| 56 | + "mounts": [ |
| 57 | + "source=${localWorkspaceFolder},target=/workspaces/laygo,type=bind,consistency=cached" |
| 58 | + ] |
| 59 | +} |
0 commit comments