.pre-commit-config.yaml 988 Bytes
Newer Older
Mike Horwath's avatar
Mike Horwath committed
1
2
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
Mike Horwath's avatar
Mike Horwath committed
3
  rev: v3.1.0
Mike Horwath's avatar
Mike Horwath committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  hooks:
    - id: detect-aws-credentials
    - id: detect-private-key
    - id: trailing-whitespace
    - id: end-of-file-fixer
    - id: check-executables-have-shebangs
    - id: check-symlinks
    - id: check-yaml
    - id: check-json
    - id: check-added-large-files
- repo: https://github.com/pre-commit/mirrors-yapf
  rev: v0.30.0
  hooks:
  - id: yapf
- repo: https://github.com/detailyang/pre-commit-shell
Mike Horwath's avatar
Mike Horwath committed
19
  rev: 1.0.5
Mike Horwath's avatar
Mike Horwath committed
20
21
22
23
  hooks:
  - id: shell-lint
    # args: [--format=json]
- repo: https://github.com/antonbabenko/pre-commit-terraform
Mike Horwath's avatar
Mike Horwath committed
24
  rev: v1.31.0
Mike Horwath's avatar
Mike Horwath committed
25
26
27
28
  hooks:
  - id: terraform_fmt
  - id: terragrunt_fmt
  - id: terraform_docs
Mike Horwath's avatar
Mike Horwath committed
29
30
  #- id: terraform_docs_replace
  #  args: ['--with-aggregate-type-defaults', '--sort-inputs-by-required']
Mike Horwath's avatar
Mike Horwath committed
31
32
33
34
35
36
  - id: terraform_validate
  - id: terraform_tflint
    args:
      - 'args=--deep'
      - 'args=--enable-rule=terraform_documented_variables'
  - id: terraform_tfsec