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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user