Skip to content

Commit 04d9731

Browse files
committed
chore: update pre-commit configurations
1 parent f14b359 commit 04d9731

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
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/sfn-state-machine/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This module creates following resources.
44

55
- `aws_sfn_state_machine`
66

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

1010
| Name | Version |
@@ -76,4 +76,4 @@ This module creates following resources.
7676
| <a name="output_tracing"></a> [tracing](#output\_tracing) | The configuration of AWS X-Ray tracing for the state machine. |
7777
| <a name="output_type"></a> [type](#output\_type) | The type of the state machine. |
7878
| <a name="output_versions"></a> [versions](#output\_versions) | A map of versions for the state machine. |
79-
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
79+
<!-- END_TF_DOCS -->

0 commit comments

Comments
 (0)