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

chore: Add support for autoformatting YAML and spell checking via pre-commit hooks #1874

Merged
merged 3 commits into from
Feb 5, 2024

Conversation

bryantbiggs
Copy link
Contributor

Description

  • Add support for autoformatting YAML and spell checking via pre-commit hooks

Motivation and Context

  • Ensure YAML files are formatted consistently and enforced through CI checks
  • Ensure correct spelling is enforced through CI checks

How was this change tested?

  • Yes, I have tested the PR using my local account setup (Provide any test evidence report under Additional Notes)
  • Yes, I have updated the docs for this feature
  • Yes, I ran pre-commit run -a with this PR

Additional Notes

@bryantbiggs bryantbiggs requested a review from a team as a code owner February 5, 2024 16:00
cert-manager cert-manager-87f5555f-tcxj7 1/1 Running 0 4h43m
cert-manager cert-manager-cainjector-8448ff8ddb-wwjsc 1/1 Running 0 4h43m
cert-manager cert-manager-webhook-5468b675b-fvdwk 1/1 Running 0 4h43m
cert-manager cert-manager-87f5555f-t1xj7 1/1 Running 0 4h43m
Copy link
Contributor

Choose a reason for hiding this comment

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

weird

Copy link
Contributor Author

@bryantbiggs bryantbiggs Feb 5, 2024

Choose a reason for hiding this comment

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

the spell checker isn't super great - if it sees 4 or more characters in a row it will treat it as a word. so something like cert-manager-87f5555f-tcxj7 will fail spell check but if you break it up with a numeric value like cert-manager-87f5555f-t1xj7 it ignores it 🤷🏽 (looking at just the last part after the last hyphen)

@askulkarni2 askulkarni2 merged commit f8f3d41 into main Feb 5, 2024
5 checks passed
@askulkarni2 askulkarni2 deleted the chore/formatting branch February 5, 2024 18:53
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.

2 participants