Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 851003e

Browse files
committed
new pre-commit goodness
1 parent 25c12ac commit 851003e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.pre-commit-config.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,40 @@ repos:
1010
args:
1111
- --autofix
1212
- id: trailing-whitespace
13+
- id: check-symlinks
14+
- id: end-of-file-fixer
15+
- id: mixed-line-ending
16+
17+
- repo: https://github.com/executablebooks/mdformat
18+
rev: 0.7.16
19+
hooks:
20+
- id: mdformat
21+
additional_dependencies:
22+
- mdformat-gfm
23+
- mdformat-toc
24+
# mdformat fights with terraform_docs
25+
exclude: README.m(ark)?d(own)?
1326

1427
- repo: https://github.com/igorshubovych/markdownlint-cli
1528
rev: v0.32.2
1629
hooks:
1730
- id: markdownlint
1831

32+
- repo: https://github.com/detailyang/pre-commit-shell
33+
rev: 1.0.5
34+
hooks:
35+
- id: shell-lint
36+
1937
- repo: https://github.com/antonbabenko/pre-commit-terraform
2038
rev: v1.76.0
2139
hooks:
2240
- id: terraform_docs
41+
args:
42+
- --args=--config=.terraform-docs.yml
2343
- id: terraform_fmt
2444

2545
- repo: https://github.com/golangci/golangci-lint
2646
rev: v1.50.1
2747
hooks:
2848
- id: golangci-lint
49+
entry: golangci-lint run --fix --timeout 300s

0 commit comments

Comments
 (0)