Skip to content

Add codespell support with configuration and fixes#132

Merged
ThomasWaldmann merged 4 commits intolibfuse:mainfrom
yarikoptic:enh-codespell
Mar 30, 2026
Merged

Add codespell support with configuration and fixes#132
ThomasWaldmann merged 4 commits intolibfuse:mainfrom
yarikoptic:enh-codespell

Conversation

@yarikoptic
Copy link
Copy Markdown
Contributor

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

  • Added [tool.codespell] section to pyproject.toml with skip patterns for developer-notes/ and *.html
  • Created .github/workflows/codespell.yml to check spelling on push and PRs to main
  • Whitelisted re-use and re-used as legitimate hyphenated forms

Typo Fixes

Ambiguous typos fixed manually (2 fixes with context review):

  • convienceconvenience (src/pyfuse3/__init__.pyx:560, :794)

Non-ambiguous typos fixed automatically (5 fixes in 2 files):

  • peformedperformed (src/pyfuse3/__init__.pyx:804)
  • direcorydirectory (src/pyfuse3/_pyfuse3.py:243, :263)
  • referingreferring (src/pyfuse3/_pyfuse3.py:278, :353)

Additional typo spotted during review (missed by codespell):

  • ambigioutiesambiguities (src/pyfuse3/_pyfuse3.py:278)

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

yarikoptic and others added 4 commits March 30, 2026 08:40
Configure codespell in pyproject.toml with skip patterns for
developer-notes/ and HTML files. Add GitHub Actions workflow
to check spelling on push and PRs to main.

Co-Authored-By: Claude Code 2.1.81 / Claude Opus 4.6 <noreply@anthropic.com>
- convience -> convenience (src/pyfuse3/__init__.pyx:560, :794)

Co-Authored-By: Claude Code 2.1.81 / Claude Opus 4.6 <noreply@anthropic.com>
Fixed typos:
- peformed -> performed (src/pyfuse3/__init__.pyx:804)
- direcory -> directory (src/pyfuse3/_pyfuse3.py:243, :263)
- refering -> referring (src/pyfuse3/_pyfuse3.py:278, :353)

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 ^^^
Co-Authored-By: Claude Code 2.1.81 / Claude Opus 4.6 <noreply@anthropic.com>
@ThomasWaldmann ThomasWaldmann merged commit f588236 into libfuse:main Mar 30, 2026
1 check passed
@ThomasWaldmann
Copy link
Copy Markdown
Collaborator

Thanks for this PR!

@ThomasWaldmann
Copy link
Copy Markdown
Collaborator

Would you like to apply the same change for "llfuse" and "mfusepy" projects maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants