Skip to content

Commit 1a51c44

Browse files
committed
chore: exclude platform tf files from pre-commit
1 parent 4ebb2cc commit 1a51c44

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: terraform_docs
66
args:
77
- --args=--config=.terraform-docs.yml
8-
exclude: ^modules/[^/]+/README\.md$ # Ignore README.md files in module directories (platform integrations)
8+
files: ^modules/[^/]+/[^/]+/.+\.tf$ # Only run on .tf files in modules/*/*/ directories
99
- id: terraform_fmt
1010
- id: terragrunt_fmt
1111
- repo: https://github.com/pre-commit/pre-commit-hooks

.terraform-docs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ version: ""
44

55
recursive:
66
enabled: false
7-
path: kit
87

98
content: ""
109

0 commit comments

Comments
 (0)