Skip to content

pre-commit: Format using tofu fmt#106

Merged
kou merged 2 commits into
enactic:mainfrom
abetomo:tofu-fmt
Jul 4, 2026
Merged

pre-commit: Format using tofu fmt#106
kou merged 2 commits into
enactic:mainfrom
abetomo:tofu-fmt

Conversation

@abetomo

@abetomo abetomo commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 4, 2026 01:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 fmt formatting.
  • Install OpenTofu in the GitHub Actions lint workflow to support running the formatter in CI.
  • Apply consistent formatting updates across multiple .tf files.

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.

Comment thread .pre-commit-config.yaml Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@kou kou merged commit 659b689 into enactic:main Jul 4, 2026
2 checks passed
@abetomo abetomo deleted the tofu-fmt branch July 4, 2026 12:20
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