chore: bump to latest pre-commit tools

Bumps to the latest versions of the tools we use in pre-commit except
for codespell which will come in a follow up.

Change-Id: I61f69d914b28bb13a1183315d6181db872cca638
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
This commit is contained in:
Doug Goldstein 2025-11-23 13:53:08 -06:00
parent 7b2fdd9aaa
commit 49def356a0
No known key found for this signature in database

View file

@ -15,7 +15,7 @@ exclude: |
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0 rev: v6.0.0
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
# NOTE(JayF): We shouldn't modify release notes after their # NOTE(JayF): We shouldn't modify release notes after their
@ -44,17 +44,17 @@ repos:
files: .*\.(yaml|yml)$ files: .*\.(yaml|yml)$
exclude: releasenotes/.*$ exclude: releasenotes/.*$
- repo: https://github.com/Lucas-C/pre-commit-hooks - repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4 rev: v1.5.5
hooks: hooks:
- id: remove-tabs - id: remove-tabs
exclude: '.*\.(svg)$' exclude: '.*\.(svg)$'
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.3 rev: v0.14.6
hooks: hooks:
- id: ruff - id: ruff-check
args: ['--fix', '--unsafe-fixes'] args: ['--fix', '--unsafe-fixes']
- repo: https://opendev.org/openstack/hacking - repo: https://opendev.org/openstack/hacking
rev: 6.1.0 rev: 8.0.0
hooks: hooks:
- id: hacking - id: hacking
additional_dependencies: [] additional_dependencies: []
@ -65,13 +65,13 @@ repos:
- id: codespell - id: codespell
args: [--write-changes] args: [--write-changes]
- repo: https://github.com/sphinx-contrib/sphinx-lint - repo: https://github.com/sphinx-contrib/sphinx-lint
rev: v1.0.0 rev: v1.0.2
hooks: hooks:
- id: sphinx-lint - id: sphinx-lint
args: [--enable=default-role] args: [--enable=default-role]
files: ^doc/|releasenotes|api-ref files: ^doc/|releasenotes|api-ref
- repo: https://opendev.org/openstack/bashate - repo: https://opendev.org/openstack/bashate
rev: 2.1.0 rev: 2.1.1
hooks: hooks:
- id: bashate - id: bashate
args: ["-iE006,E044", "-eE005,E042"] args: ["-iE006,E044", "-eE005,E042"]
@ -81,7 +81,7 @@ repos:
language: python language: python
types: [shell] types: [shell]
- repo: https://github.com/PyCQA/bandit - repo: https://github.com/PyCQA/bandit
rev: 1.7.10 rev: 1.9.1
hooks: hooks:
- id: bandit - id: bandit
args: ["-x", "tests/", "-n5", "-ll", "-c", "tools/bandit.yml"] args: ["-x", "tests/", "-n5", "-ll", "-c", "tools/bandit.yml"]
@ -93,7 +93,7 @@ repos:
types: [ python ] types: [ python ]
require_serial: true require_serial: true
- repo: https://github.com/PyCQA/doc8 - repo: https://github.com/PyCQA/doc8
rev: v1.1.2 rev: v2.0.0
hooks: hooks:
- id: doc8 - id: doc8
- repo: local - repo: local