Files
homelab-infrastructure/.pre-commit-config.yaml

25 lines
594 B
YAML

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-json
- id: check-yaml
- id: end-of-file-fixer
- id: pretty-format-json
args:
- --autofix
- id: trailing-whitespace
- repo: https://github.com/google/yamlfmt
rev: v0.21.0
hooks:
- id: yamlfmt
- repo: https://github.com/tofuutils/pre-commit-opentofu
rev: v2.4.2
hooks:
- id: tofu_validate
- id: tofu_fmt
- repo: https://github.com/ansible/ansible-lint
rev: v26.4.0
hooks:
- id: ansible-lint