codespell

Fix common misspellings in source code and text files

brewmacoslinux
Try with needOr install directly
Source

About

Fix common misspellings in source code and text files

Commands

codespell

Examples

Check current directory for spelling mistakes$ codespell
Check specific file and show suggestions$ codespell myfile.py
Automatically fix misspellings in place$ codespell -w .