mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +01:00
39 lines
1.5 KiB
JSON
39 lines
1.5 KiB
JSON
![]() |
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||
|
// README at: https://github.com/devcontainers/templates/tree/main/src/python
|
||
|
{
|
||
|
"name": "Python 3",
|
||
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||
|
"image": "mcr.microsoft.com/devcontainers/python:0-3.10",
|
||
|
// "features": {
|
||
|
// "ghcr.io/devcontainers-contrib/features/pre-commit:2": {}
|
||
|
// },
|
||
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||
|
// "forwardPorts": [],
|
||
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||
|
"postCreateCommand": "pip install --user -e '.[full,test,dev,doc]'; pre-commit install",
|
||
|
// Configure tool-specific properties.
|
||
|
"customizations": {
|
||
|
// Configure properties specific to VS Code.
|
||
|
"vscode": {
|
||
|
// Set *default* container specific settings.json values on container create.
|
||
|
"settings": {
|
||
|
"python.defaultInterpreterPath": "/usr/local/bin/python",
|
||
|
"editor.inlineSuggest.enabled": true,
|
||
|
"python.linting.mypyEnabled": true,
|
||
|
"python.testing.pytestEnabled": true,
|
||
|
"editor.formatOnSave": true,
|
||
|
"[python]": {
|
||
|
"editor.defaultFormatter": "ms-python.black-formatter"
|
||
|
},
|
||
|
"python.formatting.provider": "none"
|
||
|
},
|
||
|
// Add the IDs of extensions you want installed when the container is created.
|
||
|
"extensions": [
|
||
|
"ms-python.python",
|
||
|
"ms-python.vscode-pylance",
|
||
|
"ms-python.black-formatter",
|
||
|
"GitHub.copilot"
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|