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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add codespell support (config, workflow to detect/not fix) and make it fix few typos #7798

Merged
merged 8 commits into from
May 16, 2024

Conversation

yarikoptic
Copy link
Contributor

@yarikoptic yarikoptic commented May 13, 2024

More about codespell: https://github.com/codespell-project/codespell .

I personally introduced it to dozens if not hundreds of projects already and so far only positive feedback.

CI workflow has 'permissions' set only to 'read' so also should be safe.

  • Signed CLA
  • someone needs to run CI??? seems I am not authorized hence it makes it red

@CLAassistant
Copy link

CLAassistant commented May 13, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@fm3 fm3 left a comment

Choose a reason for hiding this comment

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

Hi and thank you for this Pull Request and your interest in WEBKNOSSOS!

Codespell seems like a valuable addition to the development toolbox! Since many of our developers aren’t native English speakers, this will potentially catch a lot of small errors.

I added a couple of suggestions for the config file and some individual false positives that I’d like to revert.

Also, we decided that we do not want to run codespell on every push for the moment. We’ll have a look later at how to integrate it into our process in the best way.

Could you add these suggestions to the PR implementation? Then I’ll approve the CI run and we can hopefully merge this soon.

PS: Happy to see in your Github readme that you too enjoyed Survive Style 5+ ;-)

.codespellrc Outdated Show resolved Hide resolved
.codespellrc Outdated Show resolved Hide resolved
.github/workflows/codespell.yml Outdated Show resolved Hide resolved
docs/publications.md Outdated Show resolved Hide resolved
docs/publications.md Outdated Show resolved Hide resolved
@@ -60,7 +60,7 @@ trait BoxToResultHelpers extends I18nSupport with Formatter with RemoteOriginHel
private def jsonMessages(msgs: JsArray): JsObject =
Json.obj("messages" -> msgs)

// Override this in your controller to add the CORS headers to thes results of its actions
// Override this in your controller to add the CORS headers to these results of its actions
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// Override this in your controller to add the CORS headers to these results of its actions
// Override this in your controller to add the CORS headers to the results of its actions

yarikoptic and others added 4 commits May 14, 2024 11:18
Co-authored-by: Florian M <fm3@users.noreply.github.com>
Co-authored-by: Florian M <fm3@users.noreply.github.com>
=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w -i 3 -C 2",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
@yarikoptic
Copy link
Contributor Author

coolio, I have

  • accepted config and workflow changes
  • rebased and
    • fixed up a commit message for a commit with "ambigous typos" fixes
    • reran the main fixup codespell run so it now took into account skips of publciations.md

@normanrz normanrz merged commit de6bbd4 into scalableminds:master May 16, 2024
1 of 2 checks passed
@fm3 fm3 mentioned this pull request May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants