Skip to content

Commit 3c4aa80

Browse files
committed
chore: update pre-commit configurations
1 parent 7fb19f4 commit 3c4aa80

File tree

5 files changed

+25
-11
lines changed

5 files changed

+25
-11
lines changed

.pre-commit-config.yaml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,39 @@
1+
default_install_hook_types:
2+
- pre-commit
3+
- commit-msg
4+
15
repos:
26
- repo: https://github.com/antonbabenko/pre-commit-terraform
37
rev: v1.97.4
48
hooks:
59
- id: terraform_fmt
10+
name: (terraform) Format .tf files with `terraform fmt`
611
args:
712
- --args=-diff
813
- id: terraform_validate
14+
name: (terraform) Check with `terraform validate`
915
args:
10-
- --tf-init-args=-upgrade
1116
- --hook-config=--retry-once-with-cleanup=true
12-
- id: terraform_providers_lock
13-
args:
14-
- --hook-config=--mode=always-regenerate-lockfile
17+
- --tf-init-args=-upgrade
1518
- id: terraform_tflint
19+
name: (terraform) Check with `tflint`
1620
args:
1721
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl
1822
files: ^modules/
1923
- id: terraform_docs
24+
name: (terraform) Generate docs with `terraform-docs`
2025
args: ["--args=--sort-by required"]
2126

2227
- repo: https://github.com/adrienverge/yamllint
2328
rev: v1.36.2
2429
hooks:
2530
- id: yamllint
31+
name: (yaml) Check with `yamllint`
32+
33+
- repo: https://github.com/compilerla/conventional-pre-commit
34+
rev: v4.0.0
35+
hooks:
36+
- id: conventional-pre-commit
37+
name: (commit-message) Check conventional commit
38+
stages: [commit-msg]
39+
args: []

.tflint.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ rule "terraform_unused_required_providers" {
7070

7171
plugin "aws" {
7272
source = "github.com/terraform-linters/tflint-ruleset-aws"
73-
version = "0.21.1"
73+
version = "0.38.0"
7474

7575
enabled = true
7676
deep_check = false

modules/elasticache-redis-cluster/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This module creates following resources.
77
- `aws_security_group` (optional)
88
- `aws_security_group_rule` (optional)
99

10-
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
10+
<!-- BEGIN_TF_DOCS -->
1111
## Requirements
1212

1313
| Name | Version |
@@ -102,4 +102,4 @@ This module creates following resources.
102102
| <a name="output_redis_version_actual"></a> [redis\_version\_actual](#output\_redis\_version\_actual) | The actual version number of Redis used for the ElastiCache Redis cluster. Because ElastiCache pulls the latest minor or patch for a version, this attribute returns the running version of the cache engine. |
103103
| <a name="output_sharding"></a> [sharding](#output\_sharding) | The configuration for sharding of the ElastiCache Redis cluster. |
104104
| <a name="output_source"></a> [source](#output\_source) | The configuration for source backup of the ElastiCache Redis cluster to restore from.<br> `backup_name` - The name of a snapshot from which to restore data into the new node group.<br> `rdb_s3_arns` - The list of ARNs that identify Redis RDB snapshot files stored in Amazon S3. |
105-
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
105+
<!-- END_TF_DOCS -->

modules/elasticache-redis-user-group/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This module creates following resources.
55
- `aws_elasticache_user_group`
66
- `aws_elasticache_user_group_association` (optional)
77

8-
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
8+
<!-- BEGIN_TF_DOCS -->
99
## Requirements
1010

1111
| Name | Version |
@@ -54,4 +54,4 @@ This module creates following resources.
5454
| <a name="output_id"></a> [id](#output\_id) | The ID of the ElastiCache user group. |
5555
| <a name="output_name"></a> [name](#output\_name) | The name of the ElastiCache user group. |
5656
| <a name="output_users"></a> [users](#output\_users) | The list of user IDs that belong to the user group. |
57-
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
57+
<!-- END_TF_DOCS -->

modules/elasticache-redis-user/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This module creates following resources.
44

55
- `aws_elasticache_user`
66

7-
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
7+
<!-- BEGIN_TF_DOCS -->
88
## Requirements
99

1010
| Name | Version |
@@ -54,4 +54,4 @@ This module creates following resources.
5454
| <a name="output_id"></a> [id](#output\_id) | The ID of the ElastiCache user. |
5555
| <a name="output_name"></a> [name](#output\_name) | The name of the ElastiCache user. |
5656
| <a name="output_password_required"></a> [password\_required](#output\_password\_required) | Whether a password is required for this user. |
57-
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
57+
<!-- END_TF_DOCS -->

0 commit comments

Comments
 (0)