tripleo-ci-health-queries/.pre-commit-config.yaml

26 lines
738 B
YAML

---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v3.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- id: check-byte-order-marker
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: debug-statements
language_version: python3
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.25.0
hooks:
- id: yamllint
files: \.(yaml|yml)$
types: [file, yaml]
entry: yamllint --strict
- id: yamllint
name: queries-key-ordering
files: src\/data\/queries\.yml$
entry: >
yamllint --strict -d "rules: { key-ordering: enable }"