Skip to content

Commit 78a41d5

Browse files
committed
From inf-base: Moved pre-commit doctoc to after terraform_docs
1 parent 43f5663 commit 78a41d5

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

.pre-commit-config.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,6 @@ repos:
3636
- --hook-config=--create-file-if-not-exist=true
3737
stages: [pre-commit]
3838

39-
- repo: https://github.com/thlorenz/doctoc
40-
rev: v2.2.0 # INFBASE_MAINTAINED_VERSION - This version is maintained by inf-base.
41-
hooks:
42-
- id: doctoc
43-
args:
44-
- --github
45-
- --title=# Table of contents
46-
stages: [pre-commit]
47-
4839
- repo: local
4940
hooks:
5041
- id: terraform-validation-teardown
@@ -67,6 +58,20 @@ repos:
6758
name: Check if CHANGELOG.md is updated before push
6859
stages: [pre-push]
6960

61+
- repo: https://github.com/thlorenz/doctoc
62+
rev: v2.2.0 # INFBASE_MAINTAINED_VERSION - This version is maintained by inf-base.
63+
hooks:
64+
- id: doctoc
65+
args:
66+
- --github
67+
- --title=# Table of contents
68+
exclude: |
69+
(?x)(
70+
^README-Makefile.md$
71+
)
72+
name: Add TOC to Markdown files
73+
stages: [pre-commit]
74+
7075
- repo: https://github.com/pre-commit/pre-commit-hooks
7176
rev: v6.0.0 # INFBASE_MAINTAINED_VERSION - This version is maintained by inf-base.
7277
hooks:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
- Updated the versions used to testing for `1.13` and `1.14`.
2525
- Updated Terraform and TFLint versions.
2626
- Added TOC to README
27+
- Moved doctoc to after terraform-docs
2728

2829
## 7.1.2 - 2026-01-16
2930
- Improve Terraform Validation processing.

0 commit comments

Comments
 (0)