From d72ab7a6c92efac112d1fcc255097d845d349388 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 28 May 2026 17:36:48 -0400 Subject: [PATCH 1/4] Add GitHub Actions workflow for codespell on main --- .github/workflows/codespell.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/codespell.yml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..6e996fd --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,23 @@ +# Codespell configuration is within .codespellrc +--- +name: Codespell + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Codespell + uses: codespell-project/actions-codespell@8f01853be192eb0f849a5c7d721450e7a467c579 # v2.2 From fae5f99ced1037c26a367bb59e3d27a0d29db026 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 28 May 2026 17:36:48 -0400 Subject: [PATCH 2/4] Add rudimentary codespell config --- .codespellrc | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .codespellrc diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..a34e748 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,6 @@ +[codespell] +# Ref: https://github.com/codespell-project/codespell#using-a-config-file +skip = .git,.gitignore,.gitattributes,.codespellrc +check-hidden = true +# ignore-regex = +# ignore-words-list = From 86cf2eac094eac11b1155bad202a7cecab47e317 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 28 May 2026 17:36:49 -0400 Subject: [PATCH 3/4] [DATALAD RUNCMD] chore: run codespell throughout fixing few left typos automagically === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- README.md | 2 +- bin/postal | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2dd9642..1795dca 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This repository contains the tools needed to quickly get started with Postal. For full details on how to use it [read the documentation](https://docs.postalserver.io). -## Instralling pre-requisites +## Installing pre-requisites There are a number of pre-requisites needed to run Postal. These are detailed [in the documentation](https://docs.postalserver.io/getting-started/prerequisites). If you're feeling a bit lazy (or just doing a lot of testing) , we have a couple of scripts which you can use to install everything needed. diff --git a/bin/postal b/bin/postal index 5510c2a..01423e9 100755 --- a/bin/postal +++ b/bin/postal @@ -62,7 +62,7 @@ run-docker-compose() { if [ ! -f "docker-compose.yml" ]; then echo 'No docker-compose file available. Generating using latest available version...' latest_version=`get-latest-postal-version` - echo "Latest verison is $latest_version" + echo "Latest version is $latest_version" set-postal-version $latest_version fi @@ -219,7 +219,7 @@ case "$1" in exit $? fi - # Get the latest verison of Postal which we want to upgrade + # Get the latest version of Postal which we want to upgrade # to if no other version is provided. if [ "$2" == "" ]; then if [ ! $FORCE_VERSION == "" ]; then @@ -288,7 +288,7 @@ case "$1" in exit 1 fi - # Get the latest verison of Postal as the starting version for a + # Get the latest version of Postal as the starting version for a # new installation. if [ ! $FORCE_VERSION == "" ]; then latest_version="$FORCE_VERSION" From 3bc59e0d04c25c76d20928a7e5d03927f5676edc Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 28 May 2026 17:41:04 -0400 Subject: [PATCH 4/4] codespell: protect URLs via ignore-regex URLs should not be "fixed" even if they contain typos, since rewriting them breaks links. Add `ignore-regex = https?://\S+` so codespell skips anything that looks like an http(s) URL. Co-Authored-By: Claude Code 2.1.154 / Claude Opus 4.7 (1M context) --- .codespellrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.codespellrc b/.codespellrc index a34e748..eb93180 100644 --- a/.codespellrc +++ b/.codespellrc @@ -2,5 +2,6 @@ # Ref: https://github.com/codespell-project/codespell#using-a-config-file skip = .git,.gitignore,.gitattributes,.codespellrc check-hidden = true -# ignore-regex = +# Do not "fix" URLs even if they contain typos +ignore-regex = https?://\S+ # ignore-words-list =