create devcontainer.json

This commit is contained in:
Sina Atalay
2024-07-31 17:24:56 -04:00
committed by GitHub
parent 73360d4277
commit b62ec85601

View File

@@ -0,0 +1,15 @@
// 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 to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers-contrib/features/hatch:2": {}
},
// Use 'initializeCommand' to run commands before anything else:
"initializeCommand": "git submodule update --init",
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "hatch env create default && hatch env create docs && hatch env create test"
}