Skip to content

feat: GitHub workflow Codespell#256

Merged
nimakaviani merged 4 commits intocnoe-io:mainfrom
vara-bonthu:github-workflow-codespell
May 20, 2024
Merged

feat: GitHub workflow Codespell#256
nimakaviani merged 4 commits intocnoe-io:mainfrom
vara-bonthu:github-workflow-codespell

Conversation

@vara-bonthu
Copy link
Copy Markdown
Contributor

Feature: Implement Codespell for Automatic Spell Checking

This pull request introduces a new GitHub workflow that leverages the Codespell tool to automatically check for spelling errors across our codebase.

Benefits:

  • Improved code quality and consistency by identifying potential typos and misspellings.
  • Early detection of spelling errors helps maintain a professional codebase.
  • Reduced time spent manually checking for spelling mistakes.

How to Use:

  • No manual intervention is required. Codespell will automatically run on the specified triggers and report any identified spelling errors in the pull request comments.
  • You can also run locally with the command pre-commit run -a from the root folder. You may have to install pre-commit locally

Signed-off-by: Vara Bonthu <vara.bonthu@gmail.com>
Signed-off-by: Vara Bonthu <vara.bonthu@gmail.com>
Signed-off-by: Vara Bonthu <vara.bonthu@gmail.com>
)

type Conainer struct {
type Container struct {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I can revert this if this is going to cause an issue

}

var containers []Conainer
var containers []Container
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

same as above

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks like these are all contained in this file only so I don't expect to run into any issues.

Copy link
Copy Markdown
Collaborator

@nabuskey nabuskey left a comment

Choose a reason for hiding this comment

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

I think it's nice that this catches and fixes typos (obviously we have a lot). Is it possible to exclude this check when determining if the PR passes overall checks?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this necessary? I just don't want to introduce another thing to manage.

Copy link
Copy Markdown
Contributor Author

@vara-bonthu vara-bonthu May 16, 2024

Choose a reason for hiding this comment

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

This setup is useful for contributors to run pre-commit locally before raising a PR to check for any spelling errors. We don't need to maintain this file as it doesn't require any changes.

Signed-off-by: Vara Bonthu <vara.bonthu@gmail.com>
@vara-bonthu
Copy link
Copy Markdown
Contributor Author

I think it's nice that this catches and fixes typos (obviously we have a lot). Is it possible to exclude this check when determining if the PR passes overall checks?

PR checks won't fail with the latest changes

Copy link
Copy Markdown
Collaborator

@nabuskey nabuskey left a comment

Choose a reason for hiding this comment

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

We have a lot of typos as shown by this PR and I think it's a good idea to have this. We should have this in the stacks repository as well. Especially when we move the examples directory to it.

Copy link
Copy Markdown
Contributor

@nimakaviani nimakaviani left a comment

Choose a reason for hiding this comment

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

LGTM

@nimakaviani nimakaviani merged commit a4e7fb7 into cnoe-io:main May 20, 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.

3 participants