Change-Id: I2f4abe601ddb5d9aa24b0aa91b118ec4c2e9e0f4 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
29 lines
793 B
YAML
29 lines
793 B
YAML
---
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: mixed-line-ending
|
|
args: ['--fix', 'lf']
|
|
exclude: '.*\.(svg)$'
|
|
- id: fix-byte-order-marker
|
|
- id: check-executables-have-shebangs
|
|
- id: check-merge-conflict
|
|
- id: debug-statements
|
|
- id: check-yaml
|
|
files: .*\.(yaml|yml)$
|
|
exclude: '^zuul.d/.*$'
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.16.1
|
|
hooks:
|
|
- id: ruff-check
|
|
args: ['--fix', '--unsafe-fixes']
|
|
- id: ruff-format
|
|
- repo: https://opendev.org/openstack/hacking
|
|
rev: 8.1.0
|
|
hooks:
|
|
- id: hacking
|
|
exclude: '^(doc|releasenotes|tools)/.*$'
|
|
additional_dependencies: []
|