.pre-commit-config.yaml 1.48 KB
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.4.0
Mike Horwath's avatar
Mike Horwath committed
4
5
6
7
8
9
10
11
12
13
14
  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
Mike Horwath's avatar
Mike Horwath committed
15
  rev: v0.31.0
Mike Horwath's avatar
Mike Horwath committed
16
17
18
  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.48.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
Mike Horwath's avatar
Mike Horwath committed
37
38

- repo: https://github.com/jumanjihouse/pre-commit-hooks
Mike Horwath's avatar
Mike Horwath committed
39
  rev: 2.1.5
Mike Horwath's avatar
Mike Horwath committed
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
  hooks:
    #- id: bundler-audit
    #- id: check-mailmap
    #- id: fasterer
    #- id: forbid-binary
    #- id: forbid-space-in-indent
    #- id: git-check  # Configure in .gitattributes
    #- id: git-dirty  # Configure in .gitignore
    #- id: markdownlint # Configure in .mdlrc
    #- id: reek
    #- id: require-ascii
    #- id: rubocop
    #- id: script-must-have-extension
    #- id: script-must-not-have-extension
    - id: shellcheck
    - id: shfmt