Files
automaton/.pre-commit-config.yaml
Stephen Finucane 46a3e9e65f Add ruff
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Ib34f2ff5f7da87a0ae4b1f7371afefddd001a62e
2026-01-06 14:26:47 +00:00

26 lines
710 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)$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
hooks:
- id: ruff-check
args: ['--fix', '--unsafe-fixes']
- id: ruff-format
- repo: https://opendev.org/openstack/hacking
rev: 8.0.0
hooks:
- id: hacking
additional_dependencies: []