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
Fix typos, add typos
linter to CI
#1057
Conversation
Thanks for this @dosisod ! It's uh.. really something to see all the typos here 😅 I'd like to treat this PR a little differently than most. First, the one functional change you mentioned, re:
Because this will then eventually be a breaking change (in The other thing I want to do then is 1) add the I want all the typo changes to be in a single commit, so that we can put that commit into We need to do this via at least 2 PRs. The first PR (this one, probably) can both set up the typo workflow, and fix the typos, each in their respective commits, and I will "Rebase and merge" instead of squash and merge (so we will have to rebase/squash locally to get the 2 commits we want). Alternatively, we could do these steps as separate PRs but I guess we'd have to fix all the typos first so the workflow doesn't fail on them. The last (second or third) PR would be to add the ignore file with the commit hash containing the typo fixes. I consider the new PR for |
@briantist sorry for the delay on this! I just opened a PR for the |
No worries at all, I've been short on time myself |
@briantist Ok I rebased and made it so there are 2 commits: The first sets up Also, do we need to make a separate PR to update the |
Thanks, I've merged some other things and there are conflicts now, but I'm going to pull this down today and try to resolve all that so we can get this in.
Regular merge is disabled in the repo and I think we want to keep it that way. From what I could find, GitHub (through the UI) does not support any method that preserves commit hashes, though it is possible if you merge from the CLI and push instead which I don't really want to do. I'll take care of adding the ignore revs file once we're ready, there might be at least one other commit I want to add to it. |
Codecov Report
@@ Coverage Diff @@
## main #1057 +/- ##
=======================================
Coverage 86.99% 86.99%
=======================================
Files 64 64
Lines 3115 3115
=======================================
Hits 2710 2710
Misses 405 405
|
`typos` is a great tool for finding typos in a varietry of file formats.
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.
Great job with this, thank you!
typos
is a great tool for finding typos in a varietry of file formats.I have not tested these changes, though most changes are in the documentation and the docstrings. There are 2 potential API changes: The
saftey_buffer
arguments fortidy_blacklist_tags
andtidy_identity_whitelist_entries
have been changed tosafety_buffer
. If we want to maintain compatibility we could use kwargs and check for the new flag, then the old one.