2024-03-13 16:59:57 +00:00
|
|
|
// 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:1-3.12-bullseye",
|
|
|
|
"features": {
|
|
|
|
"ghcr.io/devcontainers-contrib/features/coverage-py: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 -e .",
|
|
|
|
|
|
|
|
// Configure tool-specific properties.
|
|
|
|
"customizations": {
|
|
|
|
"vscode": {
|
|
|
|
"extensions": [
|
|
|
|
"ms-python.python"
|
|
|
|
],
|
|
|
|
"settings": {
|
|
|
|
"python.testing.pytestArgs": [
|
|
|
|
"."
|
|
|
|
],
|
|
|
|
"python.testing.unittestEnabled": false,
|
|
|
|
"python.testing.pytestEnabled": true,
|
2024-03-14 14:18:11 +00:00
|
|
|
"python.formatting.provider": "ruff",
|
2024-03-13 16:59:57 +00:00
|
|
|
"python.linting.mypyEnabled": true,
|
|
|
|
"python.linting.enabled": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
|
|
// "remoteUser": "root"
|
|
|
|
}
|