diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000000..e600596525 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,14 @@ +{ + "name": "Codespell Development Environment", + "image": "mcr.microsoft.com/devcontainers/python:1-3", + "customizations": { + "vscode": { + "extensions": [ + "github.vscode-github-actions", + "ms-python.python", + "ms-python.vscode-pylance" + ] + } + }, + "postCreateCommand": "bash .devcontainer/post_create.sh" +} diff --git a/.devcontainer/post_create.sh b/.devcontainer/post_create.sh new file mode 100644 index 0000000000..c2f86ecd81 --- /dev/null +++ b/.devcontainer/post_create.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +sudo apt-get update +sudo apt-get install -y libaspell-dev + +pip install --upgrade \ + aspell-python-py3 \ + pip \ + setuptools \ + setuptools_scm \ + wheel +pip install -e '.[dev]'