Skip to content

Commit d887003

Browse files
committed
chore: update pre-commit configuration and add missing random provider version
1 parent d1f690e commit d887003

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

.pre-commit-config.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.55.0
3+
rev: v1.56.0
44
hooks:
55
- id: terraform_fmt
6+
- id: terraform_validate
67
- id: terraform_docs
78
args:
89
- '--args=--lockfile=false'
9-
- id: terraform_validate
1010
- id: terraform_tflint
11+
args:
12+
- '--args=--only=terraform_deprecated_interpolation'
13+
- '--args=--only=terraform_deprecated_index'
14+
- '--args=--only=terraform_unused_declarations'
15+
- '--args=--only=terraform_comment_syntax'
16+
- '--args=--only=terraform_documented_outputs'
17+
- '--args=--only=terraform_documented_variables'
18+
- '--args=--only=terraform_typed_variables'
19+
- '--args=--only=terraform_module_pinned_source'
20+
- '--args=--only=terraform_naming_convention'
21+
- '--args=--only=terraform_required_version'
22+
- '--args=--only=terraform_required_providers'
23+
- '--args=--only=terraform_standard_module_structure'
24+
- '--args=--only=terraform_workspace_remote'
1125
- repo: https://github.com/pre-commit/pre-commit-hooks
1226
rev: v4.0.1
1327
hooks:

examples/complete/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ Note that this example may create resources which will incur monetary charges on
2323
|------|---------|
2424
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
2525
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.60 |
26+
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 2.0 |
2627

2728
## Providers
2829

2930
| Name | Version |
3031
|------|---------|
3132
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.60 |
32-
| <a name="provider_random"></a> [random](#provider\_random) | n/a |
33+
| <a name="provider_random"></a> [random](#provider\_random) | >= 2.0 |
3334

3435
## Modules
3536

examples/complete/versions.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@ terraform {
66
source = "hashicorp/aws"
77
version = ">= 3.60"
88
}
9+
random = {
10+
source = "hashicorp/random"
11+
version = ">= 2.0"
12+
}
913
}
1014
}

0 commit comments

Comments
 (0)