pre-commit: Format using tofu fmt#106
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds OpenTofu formatting support to the repo’s developer tooling, and applies tofu fmt-style formatting updates across Terraform/OpenTofu files.
Changes:
- Add a pre-commit hook to run
tofu fmtformatting. - Install OpenTofu in the GitHub Actions lint workflow to support running the formatter in CI.
- Apply consistent formatting updates across multiple
.tffiles.
Reviewed changes
Copilot reviewed 2 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| infra/stack/variables.tf | Formatting updates consistent with tofu fmt. |
| infra/stack/main.tf | Formatting updates in locals/module blocks consistent with tofu fmt. |
| infra/modules/security_group/variables.tf | Formatting updates consistent with tofu fmt. |
| infra/modules/iam/main.tf | Formatting updates in IAM policy document blocks consistent with tofu fmt. |
| infra/modules/ecr/main.tf | Formatting alignment update in lifecycle policy JSON. |
| infra/modules/alb/variables.tf | Formatting updates consistent with tofu fmt. |
| infra/environments/shared/main.tf | Formatting updates in resource blocks consistent with tofu fmt. |
| .pre-commit-config.yaml | Adds tofu_fmt pre-commit hook configuration. |
| .github/workflows/lint.yml | Adds OpenTofu setup step prior to running pre-commit. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.