-
Notifications
You must be signed in to change notification settings - Fork 12
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
Update pre-commit Hook Versions #44
Conversation
The mirrors-isort respository has been deprecated per this Pull Request: pre-commit/mirrors-isort#13 Since isort includes pre-commit configuration in current versions we will switch to using it directly.
This comment references the mirrors-isort repository that we are no longer using.
We have seen a number of issues related to this hook ever since it was re-enabled. It will need to remain disabled until at least the 0.13 Terraform release, and can only be re-enabled if all issues we have seen have been resolved in how `terraform validate` operates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, though please see my request for an addition to a comment.
↪️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strong work. Approved, but please see @dav3r's comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wunderbar!
…bled. Review noticed that there lacked a determination for what we were doing about the problem with the terraform_validate hook. I described the problems but failed to mention what our path forward would be. This commit rectifies that oversight.
…om:cisagov/skeleton-generic into improvements/pre-commit_autoupdate_2020-05
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
🗣 Description
In an effort to keep things up to date I am trying to run a
pre-commit autoupdate
monthly to refresh hooks. This is the result of this effort.The pre-commit/mirrors-isort repository has been deprecated since
isort
now contains appropriate code to run as apre-commit
hook. The repository used in thepre-commit
configuration have been updated appropriately.We have seen a number of issues from using the
terraform_validate
hook. These have primarily been related to proxy providers and Terraform code using remote state. The issue with remote state can be read about at hashicorp/terraform#21408, and the issue with proxy providers has been wrapped into that issue as described in this reply: hashicorp/terraform#21706 (comment). There is an accepted PR (hashicorp/terraform#24887) for remote state that is included in the future Terraform 0.13 release. I am unsure if it will resolve issues with proxy providers as there is another PR (hashicorp/terraform#24896) waiting for feedback that attempts to deal with that specifically.💭 Motivation and Context
Updates are good, fixing problems is good, things are good 👍
🧪 Testing
All automated tests pass.
📷 Screenshots (if appropriate)
🚥 Types of Changes
✅ Checklist