Skip to content

Commit 716f7b1

Browse files
committedMar 20, 2025
chore: update pre-commit configurations
1 parent 64b5859 commit 716f7b1

File tree

7 files changed

+29
-15
lines changed

7 files changed

+29
-15
lines changed
 

‎.pre-commit-config.yaml

+18-4
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

+1-1
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/eventbridge-event-bus/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This module creates following resources.
77
- `aws_cloudwatch_event_archive` (optional)
88
- `aws_schemas_discoverer` (optional)
99

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

1313
| Name | Version |
@@ -60,4 +60,4 @@ This module creates following resources.
6060
| <a name="output_id"></a> [id](#output\_id) | The unique identifier for the event bus. |
6161
| <a name="output_name"></a> [name](#output\_name) | The name of the event bus. |
6262
| <a name="output_schema_discovery"></a> [schema\_discovery](#output\_schema\_discovery) | The configuration for schema discovery of the event bus. |
63-
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
63+
<!-- END_TF_DOCS -->

‎modules/eventbridge-rule/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This module creates following resources.
55
- `aws_cloudwatch_event_rule`
66
- `aws_cloudwatch_event_target` (optional)
77

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

1111
| Name | Version |
@@ -76,4 +76,4 @@ This module creates following resources.
7676
| <a name="output_name"></a> [name](#output\_name) | The name of the rule. |
7777
| <a name="output_state"></a> [state](#output\_state) | The state of the rule. |
7878
| <a name="output_trigger"></a> [trigger](#output\_trigger) | The configuration for the rule trriger. |
79-
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
79+
<!-- END_TF_DOCS -->

‎modules/msk-cluster/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This module creates following resources.
99
- `aws_security_group_rule` (optional)
1010
- `aws_secretsmanager_secret` (optional)
1111

12-
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
12+
<!-- BEGIN_TF_DOCS -->
1313
## Requirements
1414

1515
| Name | Version |
@@ -105,4 +105,4 @@ This module creates following resources.
105105
| <a name="output_name"></a> [name](#output\_name) | The MSK cluster name. |
106106
| <a name="output_version"></a> [version](#output\_version) | Current version of the MSK Cluster used for updates. |
107107
| <a name="output_zookeeper_connections"></a> [zookeeper\_connections](#output\_zookeeper\_connections) | A configuration for connecting to the Apache Zookeeper cluster.<br> `tcp` - A comma separated list of one or more IP:port pairs to use to connect to the Apache Zookeeper cluster.<br> `tls` - A comma separated list of one or more IP:port pairs to use to connect to the Apache Zookeeper cluster via TLS. |
108-
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
108+
<!-- END_TF_DOCS -->

‎modules/sns-fifo-topic/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This module creates following resources.
66
- `aws_sns_topic_policy` (optional)
77
- `aws_sns_topic_subscription` (optional)
88

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

1212
| Name | Version |
@@ -67,4 +67,4 @@ This module creates following resources.
6767
| <a name="output_xray_tracing_enabled"></a> [xray\_tracing\_enabled](#output\_xray\_tracing\_enabled) | Whether to activate AWS X-Ray Active Tracing mode for the SNS topic. |
6868
| <a name="output_z"></a> [z](#output\_z) | The list of log streams for the log group. |
6969
| <a name="output_zz"></a> [zz](#output\_zz) | The list of log streams for the log group. |
70-
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
70+
<!-- END_TF_DOCS -->

‎modules/sns-standard-topic/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This module creates following resources.
77
- `aws_sns_topic_policy` (optional)
88
- `aws_sns_topic_subscription` (optional)
99

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

1313
| Name | Version |
@@ -76,4 +76,4 @@ This module creates following resources.
7676
| <a name="output_subscriptions"></a> [subscriptions](#output\_subscriptions) | The configurations for subscriptions to the SNS topic.<br> `EMAIL` - |
7777
| <a name="output_type"></a> [type](#output\_type) | The type of the SNS topic. |
7878
| <a name="output_xray_tracing_enabled"></a> [xray\_tracing\_enabled](#output\_xray\_tracing\_enabled) | Whether to activate AWS X-Ray Active Tracing mode for the SNS topic. |
79-
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
79+
<!-- END_TF_DOCS -->

0 commit comments

Comments
 (0)
Please sign in to comment.