pre-commit: Bump versions

hacking now has a native hook.

Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
Change-Id: Icb4c5ac7933275075fd001ddd21a0037c8107d98
This commit is contained in:
Takashi Kajinami
2025-01-13 13:42:01 +09:00
parent 1e773bae9f
commit be6c0f96e8
3 changed files with 6 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
# Replaces or checks mixed line ending
@@ -19,8 +19,7 @@ repos:
- id: check-yaml
files: .*\.(yaml|yml)$
- repo: https://opendev.org/openstack/hacking
rev: 6.1.0
rev: 7.0.0
hooks:
- id: hacking
additional_dependencies: []
exclude: '^(doc|releasenotes|tools)/.*$'

View File

@@ -1,8 +1,4 @@
hacking>=6.1.0,<6.2.0 # Apache-2.0
coverage>=4.0 # Apache-2.0
oslo.config>=5.2.0 # Apache-2.0
stestr>=2.0.0
pre-commit>=2.6.0 # MIT

View File

@@ -10,7 +10,10 @@ deps =
commands = stestr run --slowest {posargs}
[testenv:pep8]
commands = pre-commit run -a
deps =
pre-commit
commands =
pre-commit run -a
[testenv:cover]
setenv =