Skip to content

Commit

Permalink
terraform_fmt: include .tfbackend files
Browse files Browse the repository at this point in the history
As per the official docs https://developer.hashicorp.com/terraform/language/backend#file:

> *.backendname.tfbackend (e.g. config.consul.tfbackend) is the recommended naming pattern. Terraform will not prevent you from using other names but following this convention will help your editor understand the content and likely provide better editing experience as a result.
  • Loading branch information
thiagowfx authored Feb 20, 2025
1 parent 8a38366 commit 1902231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Rewrites all Terraform configuration files to a canonical format.
entry: hooks/terraform_fmt.sh
language: script
files: (\.tf|\.tfvars)$
files: (\.tf|\.tfbackend|\.tfvars)$
exclude: \.terraform/.*$

- id: terraform_docs
Expand Down

0 comments on commit 1902231

Please sign in to comment.