-
Notifications
You must be signed in to change notification settings - Fork 169
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
CI: implement codespell check for custom word mappings #1322
Conversation
Codecov ReportBase: 88.33% // Head: 88.33% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #1322 +/- ##
=======================================
Coverage 88.33% 88.33%
=======================================
Files 11 11
Lines 1080 1080
=======================================
Hits 954 954
Misses 126 126
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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 @sappelhoff
not for this PR, but may be worth having a copespell config + CI to avoid those kind of inconsistencies creeping back in. Should be doable, no? |
Yes, agreed that should be a good thing for us, as we have already had several such "wording PRs" |
I would go the other way. English tends to adopt hyphens when words are new and then drop them when they become common, except when doing so causes ambiguity. If we have both forms, then it typically means the hyphen is the older form on the way out. Additionally, Merriam-Webster says "less commonly sub-directory", so I would go with the more common form. |
Fine with me as long as we try to stick to a single one. |
I am also fine with that, thanks for chiming in Chris. I'll turn it to subdir consistently and add a CI check that we can later re-use for other words we want to be consistent on. |
previous similar PRs: |
@effigies any reason why I think I may be missing something so I don't want to bring it back in case you set up something else instead. https://github.com/bids-standard/bids-specification/pull/1302/files |
All the validation steps were put into a single workflow. |
oops my bad. I thought that the codespell.yml was a config for codespell file used by some other automated CI and not a typical github action. |
haha, now look at all those "folder" words that have already crept in due to a lacking CI step. I'll correct these in this PR as well, following #1044 |
should we update the PR title,then? |
it looks like it's fine, but it might not be: https://github.com/bids-standard/bids-specification/actions/runs/3265755715/jobs/5368473030 |
My guess is those are just listing the |
indeed, that is the case. Thanks! |
Wanna add it to pre-commit? - repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell
`` |
minor, came up in #1289