-
Notifications
You must be signed in to change notification settings - Fork 23
/
.pre-commit-config.yaml
52 lines (45 loc) · 1.32 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
default_stages: [push, commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-added-large-files
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: detect-private-key
exclude: ansible/molecule/vault/testca
- repo: https://github.com/zricethezav/gitleaks
rev: v8.18.0
hooks:
- id: gitleaks-docker
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.83.5
hooks:
- id: terraform_fmt
args:
- --args=-diff
- --args=-recursive
- id: terraform_validate
- repo: local
hooks:
- id: packer_fmt
name: Packer fmt
description: Rewrites all Packer files in canonical format
language: script
entry: ./bin/packer-fmt
files: (\.pkr\.(hcl|json)|\.pkrvars\.hcl)$
require_serial: true
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.22
hooks:
- id: packer-validate
# - repo: https://github.com/ansible-community/ansible-lint
# rev: v6.22.0
# hooks:
# - id: ansible-lint
# entry: ansible-lint -c ansible/.ansible-lint ansible
# pass_filenames: false