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: Clean up pre-commit warnings and delays #491

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

raykrueger
Copy link
Contributor

What does this PR do?

Added excalidraw to codespell ignore
Remove terraform validate from pre-commit, developers should run this themselves.

Motivation

Terraform validate in the precommit takes absolutely forever on the root of the project. Everyone is skipping it or aborting it. So let's remove it.

Finally, excalidraw always comes up in spelling check output. Let's add that to ignore.

More

  • [x ] Yes, I have tested the PR using my local account setup (Provide any test evidence report under Additional Notes)
  • Mandatory for new blueprints. Yes, I have added a example to support my blueprint PR
  • Mandatory for new blueprints. Yes, I have updated the website/docs or website/blog section for this feature
  • [x ] Yes, I ran pre-commit run -a with this PR. Link for installing pre-commit locally

For Moderators

  • E2E Test successfully complete before merge?

Additional Notes

Added excalidraw to codespell ignore
Remove terraform validate from pre-commit, developers should run this
themselves.
Comment on lines -34 to -35
- id: terraform_validate
exclude: docs
Copy link
Collaborator

Choose a reason for hiding this comment

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

@bryantbiggs Is this step used in any of the pre-commit GitHub workflows? What is your recommendation here?

Copy link
Contributor

Choose a reason for hiding this comment

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

if your CI is already running a terraform plan on each pattern, then this could be considered redundant

I also don't see pre-commit as a CI check which is why I guess a lot of these white space/noise changes are occurring on subsequent PRs

@@ -1,5 +1,5 @@
[codespell]
skip = .git,*.pdf,*.svg,go.sum,package-lock.json,*.css,.codespellrc,*.sql,website/package-lock.json
skip = .git,*.pdf,*.svg,go.sum,package-lock.json,*.css,.codespellrc,*.sql,website/package-lock.json,*.excalidraw
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice

@vara-bonthu vara-bonthu merged commit 65d1709 into awslabs:main Apr 24, 2024
57 checks passed
vara-bonthu added a commit that referenced this pull request Apr 25, 2024
ovaleanu pushed a commit to ovaleanu/data-on-eks that referenced this pull request Aug 10, 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