-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
33 lines (33 loc) · 1012 Bytes
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v4.3.0"
hooks:
- id: "check-merge-conflict"
- id: "check-json"
files: |
(?x)^.*(\.json)$
- id: "check-yaml"
files: |
(?x)^.*(\.yaml|\.yml)$
- id: "detect-private-key"
- id: "end-of-file-fixer"
exclude: ^(\.idea/workspace\.xml|.*\.svg)$
- id: "debug-statements"
- id: "mixed-line-ending"
exclude: ^(\.idea/workspace\.xml|.*\.svg)$
- id: "no-commit-to-branch"
args: [--branch, main]
- id: "trailing-whitespace"
exclude: ^(\.idea/workspace\.xml|.*\.svg)$
- repo: "https://github.com/codespell-project/codespell"
rev: v2.1.0
hooks:
- id: codespell
args: [--dictionary=.codespelldictionary, --ignore-words=.codespellignore]
- repo: "local"
hooks:
- id: terraform
entry: terraform fmt -recursive
language: system
name: terraform
types: [terraform]