Skip to content

Commit 98ba7d1

Browse files
committed
Add pre-commit config
1 parent 48401da commit 98ba7d1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.pre-commit-config.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
exclude: |
2+
(?x)^(
3+
README.md
4+
)$
5+
repos:
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v4.4.0
8+
hooks:
9+
- id: check-yaml
10+
- id: end-of-file-fixer
11+
- id: trailing-whitespace
12+
- id: check-json
13+
- id: check-yaml
14+
- id: pretty-format-json
15+
args: ["--indent", "2", "--autofix", "--no-sort-keys"]
16+
- repo: local
17+
hooks:
18+
- id: terraform-fmt
19+
name: terraform fmt
20+
description: runs terraform fmt
21+
entry: terraform fmt -recursive
22+
language: system
23+
pass_filenames: false

0 commit comments

Comments
 (0)