2021-03-11 16:20:15 +00:00
|
|
|
---
|
|
|
|
|
repos:
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2025-10-10 10:39:41 +01:00
|
|
|
rev: v6.0.0
|
2021-03-11 16:20:15 +00:00
|
|
|
hooks:
|
|
|
|
|
- id: trailing-whitespace
|
|
|
|
|
- id: mixed-line-ending
|
|
|
|
|
args: ['--fix', 'lf']
|
|
|
|
|
exclude: '.*\.(svg)$'
|
2025-10-10 10:39:41 +01:00
|
|
|
- id: fix-byte-order-marker
|
2021-03-11 16:20:15 +00:00
|
|
|
- id: check-executables-have-shebangs
|
|
|
|
|
- id: check-merge-conflict
|
|
|
|
|
- id: debug-statements
|
|
|
|
|
- id: check-yaml
|
|
|
|
|
files: .*\.(yaml|yml)$
|
2022-07-04 12:14:56 +01:00
|
|
|
args: ['--unsafe']
|
2024-08-29 10:53:30 +01:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2025-12-11 13:33:40 +00:00
|
|
|
rev: v0.15.1
|
2024-08-29 10:53:30 +01:00
|
|
|
hooks:
|
2025-10-10 10:39:41 +01:00
|
|
|
- id: ruff-check
|
2024-09-12 17:57:14 +01:00
|
|
|
args: ['--fix', '--unsafe-fixes']
|
2024-08-29 10:55:32 +01:00
|
|
|
- id: ruff-format
|
2024-01-23 11:47:52 +00:00
|
|
|
- repo: https://opendev.org/openstack/hacking
|
2025-12-11 13:33:40 +00:00
|
|
|
rev: 8.0.0
|
2021-03-11 16:20:15 +00:00
|
|
|
hooks:
|
2024-01-23 11:47:52 +00:00
|
|
|
- id: hacking
|
|
|
|
|
additional_dependencies: []
|
2024-08-29 10:57:20 +01:00
|
|
|
exclude: '^(doc|releasenotes)/.*$'
|