Add codespell support with configuration and fixes#853
Open
yarikoptic wants to merge 5 commits intoflyteorg:mainfrom
Open
Add codespell support with configuration and fixes#853yarikoptic wants to merge 5 commits intoflyteorg:mainfrom
yarikoptic wants to merge 5 commits intoflyteorg:mainfrom
Conversation
Added ignore-words-list: ot (output type variable), nd (NamedDelivery variable), crasher (legitimate word), tru (truncated JSON fixture), nome (timezone), lits (literals variable), rouge (NLP metric). Co-Authored-By: Claude Code 2.1.81 / Claude Opus 4.6 <noreply@anthropic.com>
- respones -> responses (examples/interactive/interactive.ipynb) - replacas -> replicas (examples/reuse/errors.py, examples/reuse/reusable.py) Co-Authored-By: Claude Code 2.1.81 / Claude Opus 4.6 <noreply@anthropic.com>
Fixed typos:
- optimial -> optimal (examples/advanced/resource_tuner.py)
- Thne -> Then (examples/genai/n8n/README.md)
- handel -> handle (src/flyte/_internal/imagebuild/docker_builder.py, tests)
- pre-pending -> prepending (src/flyte/_internal/imagebuild/utils.py)
- infact -> in fact (src/flyte/_internal/runtime/trigger_serde.py)
- agregate -> aggregate (src/flyte/durable/_time.py)
- langauge -> language (src/flyte/types/__init__.py)
- orignal -> original (src/flyte/types/_type_engine.py)
- propogated -> propagated (src/flyte/types/_type_engine.py)
- wihtin -> within (tests/flyte/imagebuild/test_utils.py)
Co-Authored-By: Claude Code 2.1.81 / Claude Opus 4.6 <noreply@anthropic.com>
=== Do not change lines below ===
{
"chain": [],
"cmd": "UV_CACHE_DIR=/tmp/uv-cache uvx codespell -w",
"exit": 0,
"extra_inputs": [],
"inputs": [],
"outputs": [],
"pwd": "."
}
^^^ Do not change lines above ^^^
pingsutw
approved these changes
Mar 28, 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
[tool.codespell]section topyproject.tomlwith comprehensive skip patterns.github/workflows/codespell.yml) to check spelling on push and PRs.git,.gitignore,.gitattributes,*.lockDomain-Specific Whitelist
Added legitimate terms that codespell flags as typos:
ot— variable name for output type in testsnd— NamedDelivery variable in testscrasher— legitimate word in stress test examplestru— intentional truncated JSON in test fixturenome— timezone name "America/Nome"lits— variable short for "literals"rouge— NLP scoring metric (not "rogue")Typo Fixes
Ambiguous typos fixed manually (3 fixes with context review):
respones→responses(examples/interactive/interactive.ipynb)replacas→replicas(examples/reuse/errors.py, examples/reuse/reusable.py)Non-ambiguous typos fixed automatically (14 fixes in 10 files):
optimial→optimal,Thne→Then,handel→handle(×5),pre-pending→prepending,infact→in fact,agregate→aggregate,langauge→language,orignal→original,propogated→propagated,wihtin→withinPotential Functional Fix
handel→handle: renamed methodPoetryProjectHandler.handel()and all its call sites — this was a misspelled method name that could cause issues if anyone tried to call.handle()by the correct name.@yarikoptic got intrigued -- are those tests part of CI at all?
Historical Context
This project has had 10+ prior commits fixing typos manually, demonstrating the value of automated spell-checking.
Testing
Codespell passes with zero errors after all fixes.
🤖 Generated with Claude Code and love to typos free code