Skip to content

Add codespell to pre-commit hooks - #718

Merged
sirosen merged 1 commit into
globus:mainfrom
sirosen:setup-codespell
Apr 17, 2023
Merged

sirosen merged 1 commit into
globus:mainfrom
sirosen:setup-codespell

Conversation

@sirosen

@sirosen sirosen commented Apr 17, 2023 •

Copy link
Copy Markdown
Member

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.

@kurtmckee kurtmckee left a comment •

Copy link
Copy Markdown
Member

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

sirosen commented Apr 17, 2023

Copy link
Copy Markdown
Member Author
  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
@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.

2 participants