|
2 | 2 | // https://github.com/microsoft/vscode-dev-containers/tree/v0.245.0/containers/python-3 |
3 | 3 | { |
4 | 4 | "name": "Python 3", |
5 | | - "forwardPorts": [8000], |
6 | | - "build": { |
7 | | - "dockerfile": "Dockerfile", |
8 | | - "context": "..", |
9 | | - "args": { |
10 | | - // Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6 |
11 | | - // Append -bullseye or -buster to pin to an OS version. |
12 | | - // Use -bullseye variants on local on arm64/Apple Silicon. |
13 | | - "VARIANT": "3.10-bullseye" |
14 | | - } |
15 | | - }, |
| 5 | + "image": "mcr.microsoft.com/vscode/devcontainers/python:3.11-bullseye", |
16 | 6 |
|
17 | 7 | // Configure tool-specific properties. |
18 | 8 | "customizations": { |
19 | 9 | // Configure properties specific to VS Code. |
20 | 10 | "vscode": { |
21 | 11 | // Set *default* container specific settings.json values on container create. |
22 | 12 | "settings": { |
23 | | - "python.defaultInterpreterPath": "/usr/local/bin/python", |
24 | | - "python.linting.enabled": true, |
25 | | - "python.linting.pylintEnabled": true, |
26 | | - "python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8", |
27 | | - "python.formatting.blackPath": "/usr/local/py-utils/bin/black", |
28 | | - "python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf", |
29 | | - "python.linting.banditPath": "/usr/local/py-utils/bin/bandit", |
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", |
| 13 | + "python.defaultInterpreterPath": "/usr/local/bin/python", |
| 14 | + "python.testing.pytestEnabled": true, |
34 | 15 | "python.testing.unittestEnabled": false, |
35 | | - "python.testing.pytestEnabled": true |
| 16 | + "files.exclude": { |
| 17 | + ".coverage": true, |
| 18 | + ".pytest_cache": true, |
| 19 | + "__pycache__": true |
| 20 | + } |
36 | 21 | }, |
37 | 22 |
|
38 | 23 | // Add the IDs of extensions you want installed when the container is created. |
39 | 24 | "extensions": [ |
40 | 25 | "ms-python.python", |
41 | | - "ms-python.vscode-pylance" |
| 26 | + "charliermarsh.ruff", |
| 27 | + "ms-python.black-formatter" |
42 | 28 | ] |
43 | 29 | } |
44 | 30 | }, |
|
0 commit comments