From 26ac0530748aaa3b9ed85a9daef2c04abeb2e561 Mon Sep 17 00:00:00 2001
From: Casey Korver <casey@korver.dev>
Date: Mon, 26 Jun 2023 13:57:11 +0000
Subject: [PATCH 1/3] Add dev container config

---
 .devcontainer/devcontainer.json | 17 +++++++++++++++++
 .devcontainer/post_create.sh    | 12 ++++++++++++
 2 files changed, 29 insertions(+)
 create mode 100644 .devcontainer/devcontainer.json
 create mode 100644 .devcontainer/post_create.sh

diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 0000000000..3b8616dcd0
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,17 @@
+{
+    "name": "Codespell Development Environment",
+    // TODO: Switch to image 'mcr.microsoft.com/devcontainers/python:1-3' once
+    // https://github.com/codespell-project/codespell/issues/2897 has been
+    // resolved.
+    "image": "mcr.microsoft.com/devcontainers/python:1-3-bullseye",
+    "customizations": {
+        "vscode": {
+            "extensions": [
+                "github.vscode-github-actions",
+                "ms-python.python",
+                "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]'

From cb3c370ae62b12bc534a63c2b0e022222648932a Mon Sep 17 00:00:00 2001
From: Casey Korver <casey@korver.dev>
Date: Thu, 6 Jul 2023 02:46:03 +0000
Subject: [PATCH 2/3] Change name for pylance extension

---
 .devcontainer/devcontainer.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 3b8616dcd0..59adff467c 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -9,7 +9,7 @@
             "extensions": [
                 "github.vscode-github-actions",
                 "ms-python.python",
-                "python.vscode-pylance"
+                "ms-python.vscode-pylance"
             ]
         }
     },

From 6684e7ce5722011f4e2c1632f970e963aa71119c Mon Sep 17 00:00:00 2001
From: Casey Korver <casey@korver.dev>
Date: Thu, 6 Jul 2023 02:46:28 +0000
Subject: [PATCH 3/3] Switch to Debian bookworm

---
 .devcontainer/devcontainer.json | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 59adff467c..e600596525 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -1,9 +1,6 @@
 {
     "name": "Codespell Development Environment",
-    // TODO: Switch to image 'mcr.microsoft.com/devcontainers/python:1-3' once
-    // https://github.com/codespell-project/codespell/issues/2897 has been
-    // resolved.
-    "image": "mcr.microsoft.com/devcontainers/python:1-3-bullseye",
+    "image": "mcr.microsoft.com/devcontainers/python:1-3",
     "customizations": {
         "vscode": {
             "extensions": [