chore: migrate from codespell to typos#11045
Merged
Conversation
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
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.
We still regularly get typo fix PRs because codespell doesn't catch as many as it should. Typos is better.