Skip to content

chore: migrate from codespell to typos#11045

Merged
DaniPopes merged 4 commits intomasterfrom
typos-migration
Jul 18, 2025
Merged

chore: migrate from codespell to typos#11045
DaniPopes merged 4 commits intomasterfrom
typos-migration

Conversation

@DaniPopes
Copy link
Member

We still regularly get typo fix PRs because codespell doesn't catch as many as it should. Typos is better.

Replaced codespell with typos for better performance and more flexible
configuration. This includes:

- Removed .codespellrc configuration
- Added typos.toml with equivalent exclusions and ignored words
- Updated GitHub Actions workflow to use crate-ci/typos@v1
- Updated Makefile targets from lint-codespell to lint-typos
- Fixed actual typos found: overide→override, diffent→different,
  unintialized→uninitialized, dependendy→dependency, appropiate→appropriate
Added regex patterns to ignore common programming constructs:
- Hex strings of various lengths (8, 40, 64 chars)
- Hex literals starting with 0x
- Ordinal numbers in identifiers (1st, 2nd, 3rd, etc.)

This removes most of the word-level exceptions except 'ba' which is
used as a command alias for 'basefee'.
Added test directory exclusions to reduce false positives in test code:
- **/tests/** and **/test/** directories
- Files matching **/*_test.* and **/*_tests.*

Also added descriptive comments to all file exclusion entries for clarity.
Documented why each word in extend-words is allowed:
- crate: Rust keyword used in dependency resolution
- ser: Common abbreviation for serialization
- ratatui: Terminal UI library name
- Caf: Appears in test data/fixtures
- froms: Used in error messages and API names
- strat: Common abbreviation for strategy
- ba: Command alias for basefee
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

based alert

@DaniPopes DaniPopes merged commit 834228c into master Jul 18, 2025
22 checks passed
@DaniPopes DaniPopes deleted the typos-migration branch July 18, 2025 20:48
@github-project-automation github-project-automation bot moved this to Done in Foundry Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants