Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add codespell to pre-commit hooks #718

Merged
merged 1 commit into from Apr 17, 2023
Merged

Conversation

sirosen
Copy link
Member

@sirosen sirosen commented Apr 17, 2023

This catches and fixes several typos.

Also, fix 'mutabl->mutable' in docs, which was not caught by codespell.
(For reference, I've tried opening a PR on codepsell, to see how hard or easy it is to get our relevant typos included there as we encounter things.)


Some background/meta: codepsell lists known words and typos, to keep false negatives to a minimum. For some problem-words like deque vs dequeue, it features a few different built-in dictionaries which we could apply.

I'd like to try it out here and on the CLI, and maybe replace the custom typo checker I wrote for one of our internal projects with it.


馃摎 Documentation preview 馃摎: https://globus-sdk-python--718.org.readthedocs.build/en/718/

This catches and fixes several typos.

Also, fix 'mutabl->mutable' in docs, which was not caught by
codespell.
Copy link
Member

@kurtmckee kurtmckee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Love that you wrote "codepsell" more often than "codespell" in this PR! 馃槈
  2. The typos project seems to catch more typos than codespell currently does. I recommend taking a look at that instead! (For example, typos caught "StorageGatewayDocumment" and updated it to "StorageGatewayDocument".)

@sirosen
Copy link
Member Author

sirosen commented Apr 17, 2023

  1. Love that you used codepsell throughout this PR!

馃う

  1. The typos project seems to catch more typos than codespell currently does. I recommend taking a look at that instead!

Yeah, I'm happy to swap this out in the future (as in, within the hour) if we try it out and like it better.

@sirosen sirosen merged commit 17a8044 into globus:main Apr 17, 2023
17 checks passed
@sirosen sirosen deleted the setup-codespell branch April 17, 2023 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-news-is-good-news This change does not require a news file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants