# See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks --- # misc checks repos: - repo: /~https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files - id: check-toml - id: detect-private-key # checking yaml formatting - repo: /~https://github.com/adrienverge/yamllint rev: v1.29.0 hooks: - id: yamllint # checking spelling - repo: /~https://github.com/codespell-project/codespell rev: v2.2.2 hooks: - id: codespell exclude: > (?x)^( .*\.lock|.*\.csv )$ # linting for terraform - repo: /~https://github.com/antonbabenko/pre-commit-terraform rev: v1.77.0 hooks: - id: terraform_docs args: - --hook-config=--path-to-file=README.md - --hook-config=--add-to-existing-file=true - --hook-config=--create-file-if-not-exist=true - id: terraform_fmt - id: terraform_validate - id: terraform_tflint - id: terraform_tfsec