-
Notifications
You must be signed in to change notification settings - Fork 120
/
.pre-commit-config.yaml
77 lines (76 loc) · 1.76 KB
/
.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
exclude: ^ansible/roles/google_cloud_ops_agents/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: requirements-txt-fixer
- id: check-json
- id: check-yaml
- id: sort-simple-yaml
- id: debug-statements
- id: check-symlinks
- id: end-of-file-fixer
- id: trailing-whitespace
- id: detect-private-key
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
hooks:
- id: mdformat
args:
- --wrap=80
exclude: README_TF\.md
additional_dependencies:
- mdformat-toc
- mdformat-tables
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
- id: yamlfmt
args:
- --mapping=2
- --sequence=2
- --offset=0
- --width=80
- repo: local
hooks:
- id: packer_fmt
name: Packer fmt
entry: packer fmt -recursive .
files: \.pkr(vars)?\.hcl$
language: system
types: [file, text]
pass_filenames: false
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.83.4
hooks:
- id: terraform_fmt
- id: terraform_validate
- id: terraform_tflint
- id: terraform_docs
args:
- --args=--config=.terraform-docs.yaml
- --hook-config=--create-file-if-not-exist=true
- --hook-config=--path-to-file=README_TF.md
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
exclude: ^dm/
language_version: python3
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
exclude: ^dm/
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
hooks:
- id: codespell
- id: codespell
alias: codespell-apply
args: [-w]
stages: [manual]