Add codespell support with configuration and fixes#103
Merged
mihaic merged 6 commits intobrainiak:masterfrom Apr 16, 2026
Merged
Add codespell support with configuration and fixes#103mihaic merged 6 commits intobrainiak:masterfrom
mihaic merged 6 commits intobrainiak:masterfrom
Conversation
Co-Authored-By: Claude Code 2.1.111 / Claude Opus 4.6 <noreply@anthropic.com>
Ambiguous typos (multiple codespell suggestions, resolved by context): - Initative -> Initiative (docs/using-bids-data.md) - tyes -> yes (3 files; neither codespell suggestion was correct) - commnds -> commands (rtCommon/projectServer.py) - thow -> throw (rtCommon/clientInterface.py) - registerd -> registered (rtCommon/remoteable.py) - complext -> complex (rtCommon/remoteable.py) - theses -> these (rtCommon/webServer.py) - elipse -> ellipse (web/html/jsPsychFeedback.html) - doesnt -> doesn't (tests/test_bidsIncremental.py, scripts/run-docker.sh) - cant -> can't (docs/for-developers.md, 2 occurrences) - Complie -> Compile (scripts/install-on-linux.sh) - Interace -> Interface (rtCommon/projectServerRPC.py) Typos codespell missed (found during manual review): - usnername -> username (docs/subject-feedback.md) - initScrannerStream -> initScannerStream (docs/for-developers.md) - getAllReponses -> getAllResponses (docs/for-developers.md) Co-Authored-By: Claude Code 2.1.111 / Claude Opus 4.6 <noreply@anthropic.com>
65 typos across 30 files, all with single-suggestion fixes including:
- recieves -> receives, requets/reqeusts/requsts -> requests
- initalize -> initialize (4), calcluate -> calculate (2)
- utilites -> utilities (2), miliseconds -> milliseconds (2)
- wholely -> wholly (2), paritally -> partially (2), occured -> occurred (3)
- runnning -> running (2), instatiated -> instantiated (2)
- Various other typos in code comments, docstrings, and documentation
Co-Authored-By: Claude Code 2.1.111 / Claude Opus 4.6 <noreply@anthropic.com>
=== Do not change lines below ===
{
"chain": [],
"cmd": "uvx codespell -w",
"exit": 0,
"extra_inputs": [],
"inputs": [],
"outputs": [],
"pwd": "."
}
^^^ Do not change lines above ^^^
Co-Authored-By: Claude Code 2.1.111 / Claude Opus 4.6 <noreply@anthropic.com>
mihaic
approved these changes
Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add codespell configuration and fix existing typos.
More about codespell: https://github.com/codespell-project/codespell
I personally introduced it to over a hundred of projects already mostly with a positive feedback
(see the "improveit-dashboard").
CI workflow has 'permissions' set only to 'read' so also should be safe.
Changes
Configuration & Infrastructure
.codespellrcwith skip patterns for.git, vendoredjsPsych, PDFs, SVGs, CSSmasterand PRscodespell-project/actions-codespell@v2.2actionTypo Fixes
Ambiguous typos fixed manually (19 fixes with context review):
tyes→yesin 3 files (neither codespell suggestion was correct; flag is--yesToPrompts)Initative→Initiative,commnds→commands,thow→throwregisterd→registered,complext→complex,theses→theseelipse→ellipse,Complie→Compile,Interace→Interfacedoesnt→doesn't(2),cant→can't(2)Typos codespell missed (fixed manually):
usnername→username(docs/subject-feedback.md)initScrannerStream→initScannerStream(docs/for-developers.md)getAllReponses→getAllResponses(docs/for-developers.md)initalize→initialize(projects/sample/initialize.py, missed by codespell)Non-ambiguous typos fixed automatically (65 fixes in 38 files via
codespell -w):Common fixes include:
recieves→receives,requets/reqeusts→requests,initalize→initialize,calcluate→calculate,utilites→utilities,wholely→wholly,paritally→partially,occured→occurred,runnning→running,instatiated→instantiated, and many more.Historical Context
This project had 3 prior commits fixing typos manually (grep for "typo" in git log),
demonstrating the value of automated spell-checking.
Testing
🤖 Generated with Claude Code and love to typos free code