|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
2 | 2 | // https://github.com/microsoft/vscode-dev-containers/tree/v0.245.0/containers/python-3
|
3 | 3 | {
|
4 |
| - "name": "Python 3", |
5 |
| - "image": "mcr.microsoft.com/vscode/devcontainers/python:3.11-bullseye", |
| 4 | + "name": "Python 3", |
| 5 | + "image": "mcr.microsoft.com/devcontainers/python:3.11-bullseye", |
6 | 6 |
|
7 |
| - // Configure tool-specific properties. |
8 |
| - "customizations": { |
9 |
| - // Configure properties specific to VS Code. |
10 |
| - "vscode": { |
11 |
| - // Set *default* container specific settings.json values on container create. |
12 |
| - "settings": { |
| 7 | + // Configure tool-specific properties. |
| 8 | + "customizations": { |
| 9 | + // Configure properties specific to VS Code. |
| 10 | + "vscode": { |
| 11 | + // Set *default* container specific settings.json values on container create. |
| 12 | + "settings": { |
13 | 13 | "python.defaultInterpreterPath": "/usr/local/bin/python",
|
14 | 14 | "python.testing.pytestEnabled": true,
|
15 | 15 | "python.testing.unittestEnabled": false,
|
|
18 | 18 | ".pytest_cache": true,
|
19 | 19 | "__pycache__": true
|
20 | 20 | }
|
21 |
| - }, |
| 21 | + }, |
22 | 22 |
|
23 |
| - // Add the IDs of extensions you want installed when the container is created. |
24 |
| - "extensions": [ |
25 |
| - "ms-python.python", |
| 23 | + // Add the IDs of extensions you want installed when the container is created. |
| 24 | + "extensions": [ |
| 25 | + "ms-python.python", |
26 | 26 | "charliermarsh.ruff",
|
27 | 27 | "ms-python.black-formatter"
|
28 |
| - ] |
29 |
| - } |
30 |
| - }, |
| 28 | + ] |
| 29 | + } |
| 30 | + }, |
31 | 31 |
|
32 |
| - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
33 |
| - // "forwardPorts": [], |
| 32 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 33 | + // "forwardPorts": [], |
34 | 34 |
|
35 |
| - // Use 'postCreateCommand' to run commands after the container is created. |
36 |
| - "postCreateCommand": "pip3 install --user -r requirements-dev.txt && pre-commit install", |
| 35 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 36 | + "postCreateCommand": "pip3 install --user -r requirements-dev.txt && pre-commit install", |
37 | 37 |
|
38 |
| - // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
39 |
| - "remoteUser": "vscode" |
| 38 | + // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 39 | + "remoteUser": "vscode" |
40 | 40 | }
|
0 commit comments