53 lines
951 B
YAML
53 lines
951 B
YAML
|
---
|
||
|
repos:
|
||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||
|
rev: v4.6.0 # Use the ref you want to point at
|
||
|
hooks:
|
||
|
- id: end-of-file-fixer
|
||
|
name: Fix EOF
|
||
|
types:
|
||
|
- text
|
||
|
|
||
|
- id: trailing-whitespace
|
||
|
name: Fix trailing whitespace
|
||
|
types:
|
||
|
- text
|
||
|
|
||
|
- id: check-merge-conflict
|
||
|
name: Check merge conflict
|
||
|
types:
|
||
|
- text
|
||
|
|
||
|
- id: check-yaml
|
||
|
name: Check YAML file syntax
|
||
|
types:
|
||
|
- yaml
|
||
|
|
||
|
- repo: https://github.com/Yelp/detect-secrets
|
||
|
rev: v1.5.0
|
||
|
hooks:
|
||
|
- id: detect-secrets
|
||
|
name: Check for committed secrets
|
||
|
types:
|
||
|
- text
|
||
|
|
||
|
- repo: https://github.com/executablebooks/mdformat
|
||
|
rev: 0.7.17
|
||
|
hooks:
|
||
|
- id: mdformat
|
||
|
args:
|
||
|
- "--number"
|
||
|
- "--wrap=90"
|
||
|
additional_dependencies:
|
||
|
- mdformat-gfm
|
||
|
|
||
|
- repo: local
|
||
|
hooks:
|
||
|
- id: terraform-format
|
||
|
name: Enforce terraform formatting
|
||
|
entry: tofu
|
||
|
language: system
|
||
|
args:
|
||
|
- "fmt"
|
||
|
files: '.*\.(tfvars|tf)$'
|