pre-commit: Run ruff before hacking

Otherwise hacking can complain about things like unused imports
immediately before ruff goes and removes them.

Change-Id: Ie8809cca3d947a5ecab3de99a8c926581aea212b
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2025-09-05 16:22:51 +01:00
parent defece13db
commit f9c3ffb11d

View File

@@ -37,6 +37,11 @@ repos:
hooks:
- id: remove-tabs
exclude: '.*\.(svg)$'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.3
hooks:
- id: ruff
args: ['--fix', '--unsafe-fixes']
- repo: https://opendev.org/openstack/hacking
rev: 6.1.0
hooks:
@@ -80,11 +85,6 @@ repos:
rev: v1.1.2
hooks:
- id: doc8
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.3
hooks:
- id: ruff
args: ['--fix', '--unsafe-fixes']
- repo: local
hooks:
- id: check-releasenotes