Add codespell support (config, workflow to detect/not fix) and make it fix some typos (#253)

* Add github action to codespell master on push and PRs

* Add rudimentary codespell config

* Ignore latex \@ constructs

* [DATALAD RUNCMD] chore: run codespell throughout fixing a few  new typos automagically

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
This commit is contained in:
Yaroslav Halchenko 2025-09-06 13:54:28 -04:00 committed by GitHub
commit 686f1a9a08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 77 additions and 45 deletions

25
.github/workflows/codespell.yml vendored Normal file
View file

@ -0,0 +1,25 @@
# Codespell configuration is within .codespellrc
---
name: Codespell
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Annotate locations with typos
uses: codespell-project/codespell-problem-matcher@v1
- name: Codespell
uses: codespell-project/actions-codespell@v2