codespell Plugin
Check source code for common misspellings.
Commands
Check
codespell check run— Check files for common misspellingscodespell check interactive— Check and interactively fix misspellings
Usage Examples
- "Check for spelling mistakes in the codebase"
- "Find and fix typos in source files"
- "Check spelling in comments across the project"
Installation
pip install codespell
Examples
# Check directory
codespell .
# Check specific files
codespell src/*.py docs/*.md
# Skip files
codespell --skip "*.svg,*.png"
# Ignore words
codespell --ignore-words-list "hist"
# Quiet mode
codespell -q 2 .