Skip to content

Commit

Permalink
update, run precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed May 11, 2026
1 parent fa836e3 commit 7927695
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 35 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.48.0
rev: v1.105.0
hooks:
# - id: terraform_validate
- id: terraform_fmt
Expand All @@ -9,11 +9,11 @@ repos:
exclude: common/*.tf
exclude: version.tf
exclude: examples/
- id: terraform_tflint
args: [ "--args=--config=__GIT_WORKING_DIR__/.tflint.hcl"]
exclude: examples/
# - id: terraform_tflint
# args: [ "--args=--config=__GIT_WORKING_DIR__/.tflint.hcl"]
# exclude: examples/
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v6.0.0
hooks:
- id: check-symlinks
- id: detect-aws-credentials
Expand Down
2 changes: 1 addition & 1 deletion base-label/base.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ locals {
}

resource "terraform_data" "base_environment" {
count = local.base.environment!=null && length(local.base.environment) > 0 ? 1 : 0
count = local.base.environment != null && length(local.base.environment) > 0 ? 1 : 0
input = local.base.environment

lifecycle {
Expand Down
2 changes: 1 addition & 1 deletion common/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ terraform {
version = ">= 3.66.0"
}
}
# required_version = ">= 0.13"
# required_version = ">= 0.13"
}
2 changes: 1 addition & 1 deletion examples/tags/tags.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "tags" {
# source = "git@github.e.it.census.gov:terraform-modules/boc-nts//tags"
# source = "git@github.e.it.census.gov:terraform-modules/boc-nts//tags"
source = "../../tags"
filename = format("%v/%v", path.root, "tags.yml")

Expand Down
2 changes: 1 addition & 1 deletion examples/tags/variable.application_tags.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
variable "application_tags" {
description = "Map of application tags"
type = map(string)
type = map(string)
}
48 changes: 24 additions & 24 deletions examples/tags/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,30 @@ terraform {
source = "hashicorp/aws"
version = ">= 4.0"
}
# ldap = {
# source = "trevex/ldap"
# version = ">= 0.5.4"
# }
# external = {
# source = "hashicorp/external"
# version = ">= 1.0"
# }
# null = {
# source = "hashicorp/null"
# version = ">= 1.0"
# }
# random = {
# source = "hashicorp/random"
# version = ">= 1.0"
# }
# template = {
# source = "hashicorp/template"
# version = ">= 1.0"
# }
# infoblox = {
# source = "infobloxopen/infoblox"
# version = ">= 2.1.0"
# }
# ldap = {
# source = "trevex/ldap"
# version = ">= 0.5.4"
# }
# external = {
# source = "hashicorp/external"
# version = ">= 1.0"
# }
# null = {
# source = "hashicorp/null"
# version = ">= 1.0"
# }
# random = {
# source = "hashicorp/random"
# version = ">= 1.0"
# }
# template = {
# source = "hashicorp/template"
# version = ">= 1.0"
# }
# infoblox = {
# source = "infobloxopen/infoblox"
# version = ">= 2.1.0"
# }
}
required_version = ">= 1.0.0"
}
2 changes: 1 addition & 1 deletion tags/tags.finops.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "terraform_data" "finops_roles" {

lifecycle {
precondition {
condition = !anytrue([for r in tolist(local.finops_roles) : length(regexall("[^0-9a-z_]", r)) > 0])
condition = ! anytrue([for r in tolist(local.finops_roles) : length(regexall("[^0-9a-z_]", r)) > 0])
error_message = "Error in one of the finops.roles fields. Each value may contain only 0-9, a-z, and underscore."
}
}
Expand Down
2 changes: 1 addition & 1 deletion tags/tags.legacy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ locals {

_legacy_finops1 = [for k, v in var.legacy_tags : { legacy_key = k, value = v, key = lookup(local.legacy_finops_tags_map, k, null) }]
legacy_finops_converted = merge([for t in local._legacy_finops1 : { (t.key) = lower(t.value) } if t.key != null]...)
legacy_tags_remaining = { for k, v in var.legacy_tags : k => v if !contains(local.legacy_finops_tags_keys, k) }
legacy_tags_remaining = { for k, v in var.legacy_tags : k => v if ! contains(local.legacy_finops_tags_keys, k) }
}

resource "terraform_data" "legacy_finops_number" {
Expand Down

0 comments on commit 7927695

Please sign in to comment.