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:
|
hooks:
|
||||||
- id: tofu-fmt
|
- id: tofu-fmt
|
||||||
- id: tofu-validate
|
- id: tofu-validate
|
||||||
|
exclude: ^modules/
|
||||||
- id: tflint
|
- id: tflint
|
||||||
|
exclude: ^modules/
|
||||||
- id: terragrunt-hcl-fmt
|
- id: terragrunt-hcl-fmt
|
||||||
- repo: https://github.com/adrienverge/yamllint.git
|
- repo: https://github.com/adrienverge/yamllint.git
|
||||||
rev: v1.37.1
|
rev: v1.37.1
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
terraform {
|
|
||||||
required_version = ">= 1.10"
|
|
||||||
required_providers {
|
|
||||||
sonarr = {
|
|
||||||
source = "devopsarr/sonarr"
|
|
||||||
version = ">= 3.4.2"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user