Skip to content

Commit 0b8de55

Browse files
committed
chore: update pre-commit configurations
1 parent 399a7d8 commit 0b8de55

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
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: []

modules/service-ip-ranges/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This module does not create any resources.
44

5-
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
5+
<!-- BEGIN_TF_DOCS -->
66
## Requirements
77

88
| Name | Version |
@@ -46,4 +46,4 @@ No modules.
4646
| <a name="output_ipv4_cidrs"></a> [ipv4\_cidrs](#output\_ipv4\_cidrs) | The list of IPv4 CIDRs for the service. |
4747
| <a name="output_ipv6_cidrs"></a> [ipv6\_cidrs](#output\_ipv6\_cidrs) | The list of IPv6 CIDRs for the service. |
4848
| <a name="output_service"></a> [service](#output\_service) | The service which owns the IP ranges. |
49-
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
49+
<!-- END_TF_DOCS -->

0 commit comments

Comments
 (0)