xonsh/.devcontainer/devcontainer.json
Noorhteen Raja NJ 52e2b5dd56
Codespaces and devcontainer.json (#5158)
* chore: add devcontainer.json

* chore: setup pre-commit and black

* chore: using 3.10 version as to support pre-commit plugins
2023-06-21 22:23:46 +05:30

39 lines
No EOL
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"
]
}
}
}