fix: remove versions.tf and exclude modules from validate/tflint
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful

The versions.tf conflicts with terragrunt's generated backend.tf which
already has required_providers. Exclude modules/ from tofu-validate and
tflint pre-commit hooks since they can't init without the full terragrunt
context.
This commit is contained in:
2026-06-29 23:29:28 +10:00
parent 40df65c1e1
commit 7261bf5bbb
2 changed files with 2 additions and 9 deletions
+2
View File
@@ -11,7 +11,9 @@ repos:
hooks:
- id: tofu-fmt
- id: tofu-validate
exclude: ^modules/
- id: tflint
exclude: ^modules/
- id: terragrunt-hcl-fmt
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.37.1
-9
View File
@@ -1,9 +0,0 @@
terraform {
required_version = ">= 1.10"
required_providers {
sonarr = {
source = "devopsarr/sonarr"
version = ">= 3.4.2"
}
}
}