|
5 | 5 | "build": { |
6 | 6 | "dockerfile": "Dockerfile", |
7 | 7 | "context": "..", |
8 | | - "args": { |
| 8 | + "args": { |
9 | 9 | // Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6 |
10 | 10 | // Append -bullseye or -buster to pin to an OS version. |
11 | 11 | // Use -bullseye variants on local on arm64/Apple Silicon. |
|
15 | 15 | } |
16 | 16 | }, |
17 | 17 |
|
18 | | - // Set *default* container specific settings.json values on container create. |
19 | | - "settings": { |
20 | | - "python.autoComplete.extraPaths": ["/workspaces"], |
21 | | - "python.defaultInterpreterPath": "/usr/local/bin/python", |
22 | | - "python.linting.enabled": true, |
23 | | - "python.linting.pycodestyleEnabled": true, |
24 | | - "python.linting.pylintEnabled": true, |
25 | | - "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8", |
26 | | - "python.formatting.blackPath": "/usr/local/py-utils/bin/black", |
27 | | - "python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf", |
28 | | - "python.linting.banditPath": "/usr/local/py-utils/bin/bandit", |
29 | | - "python.linting.flake8Path": "/usr/local/py-utils/bin/flake8", |
30 | | - "python.linting.mypyPath": "/usr/local/py-utils/bin/mypy", |
31 | | - "python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle", |
32 | | - "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", |
33 | | - "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint" |
34 | | - }, |
| 18 | + // Configure tool-specific properties. |
| 19 | + "customizations": { |
| 20 | + "vscode": { |
| 21 | + // Set *default* container specific settings.json values on container create. |
| 22 | + "settings": { |
| 23 | + "python.autoComplete.extraPaths": ["/workspaces"], |
| 24 | + "python.defaultInterpreterPath": "/usr/local/bin/python", |
| 25 | + "python.linting.enabled": true, |
| 26 | + "python.linting.pycodestyleEnabled": true, |
| 27 | + "python.linting.pylintEnabled": true, |
| 28 | + "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8", |
| 29 | + "python.formatting.blackPath": "/usr/local/py-utils/bin/black", |
| 30 | + "python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf", |
| 31 | + "python.linting.banditPath": "/usr/local/py-utils/bin/bandit", |
| 32 | + "python.linting.flake8Path": "/usr/local/py-utils/bin/flake8", |
| 33 | + "python.linting.mypyPath": "/usr/local/py-utils/bin/mypy", |
| 34 | + "python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle", |
| 35 | + "python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", |
| 36 | + "python.linting.pylintPath": "/usr/local/py-utils/bin/pylint" |
| 37 | + }, |
35 | 38 |
|
36 | | - // Add the IDs of extensions you want installed when the container is created. |
37 | | - "extensions": [ |
38 | | - "ms-python.pylint", |
39 | | - "ms-python.vscode-pylance", |
40 | | - "ms-python.python", |
41 | | - ], |
| 39 | + // Add the IDs of extensions you want installed when the container is created. |
| 40 | + "extensions": [ |
| 41 | + "ms-python.pylint", |
| 42 | + "ms-python.vscode-pylance", |
| 43 | + "ms-python.python", |
| 44 | + "Anthropic.claude-code" |
| 45 | + ] |
| 46 | + } |
| 47 | + }, |
42 | 48 |
|
43 | 49 | // Use 'forwardPorts' to make a list of ports inside the container available locally. |
44 | 50 | // "forwardPorts": [], |
|
49 | 55 | // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
50 | 56 | "remoteUser": "vscode", |
51 | 57 | "features": { |
52 | | - "github-cli": "latest", |
| 58 | + "ghcr.io/devcontainers/features/github-cli:1": "latest" |
53 | 59 | } |
54 | 60 | } |
0 commit comments