-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding spell checker as a pre-commit hook #1544
Conversation
Ah-hmm. Right. I guess I can't just ignore the changelog. Should I correct the spelling errors in it, or set up codespell to ignore that folder? I'll make it skip svg files, those aren't texty enough I suppose. |
Tried to add the |
You can correct spelling in the changelog, no problems with that :). |
Thanks for input ^_^
I'll open this for review now as I think it's working properly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks.
Was it just the line endings of the ignore file you were having issues with then @Skaft ? |
@peternewman Sorry, I don't recall the specifics, it's been over a year since I looked at this. |
Heh, no worries @Skaft . |
Changelog / Overview
Motivation
Removes existing spelling mistakes, and prevents future ones.
Explanation for Changes
Spelling errors will keep cropping up, with a pre-commit hook to hunt them down we can reduce the problem. Of course
codespell
is not the only option for that, and there might be better alternatives. This is the first I tried, but it seems to work well out of the box.Testing Status
Most changes are in documentation, but some variable names have been changed. So I ran the pytest suite which passed.
Further Comments
.codespell_ignorelines
.Checklist
Reviewer Checklist