fix: remove versions.tf and exclude modules from validate/tflint
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:
@@ -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
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
terraform {
|
||||
required_version = ">= 1.10"
|
||||
required_providers {
|
||||
prowlarr = {
|
||||
source = "devopsarr/prowlarr"
|
||||
version = ">= 3.2.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user