Skip to content

Commit 475fb2b

Browse files
author
Ted van Riel
committed
fix(terraform_fmt): add support for tofutest files
OpenTofu has their own file pattern for defining tests: *.tofutest.hcl As taken from https://opentofu.org/docs/cli/commands/test/#the-tftesthcl--tofutesthcl-file-structure
1 parent 48b3a29 commit 475fb2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
language: script
1616
# Supported extensions by Terraform specified in
1717
# https://github.com/hashicorp/terraform/blob/0c63fb2b097edcd5cb1a91322765a414206fbea2/internal/command/fmt.go#L30-L35
18-
files: \.(tf|tofu|tfvars|tftest\.hcl|tfmock\.hcl)$
18+
files: \.(tf|tofu|tfvars|(tftest|tofutest|tfmock|tofumock)\.hcl)$
1919
exclude: \.terraform/.*$
2020

2121
- id: terraform_docs

0 commit comments

Comments
 (0)