Update pre-commit Hooks and Fix Broken Hook ID #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🗣 Description
This is just a maintenance PR with a splash of bugfix. I'd like to update pre-commit on a monthly schedule to keep things from getting too stale. This is the first PR with that in mind.
I also noticed that there was a problem with the
terraform_validate_no_variables
hook from thepre-commit-terraform
repo. Upon investigation I found that the hook id had been changed in antonbabenko/pre-commit-terraform@35e0356 and the hook id used here had never been updated to follow. The-check-variables
switch used to differentiate the two previousterraform_validate
hooks no longer appears to be an option for theterraform validate
command per the Terraform documentation.💭 Motivation and Context
Being up-to-date is good. Getting a regular cadence of being up-to-date is even better.
🧪 Testing
pre-commit
hooks worked as expected.📷 Screenshots (if appropriate)
🚥 Types of Changes
✅ Checklist