Add hacking check to the pre-commit configuration

By default, it will inherit the hacking checks implemented in
neutron-lib.

Signed-off-by: Rodolfo Alonso Hernandez <ralonsoh@redhat.com>
Change-Id: Ic0780ab9868389dec6a9307c3242a7051930af37
This commit is contained in:
Rodolfo Alonso Hernandez
2025-08-26 13:57:55 +00:00
committed by Rodolfo Alonso
parent fed6d3241f
commit 8d9747bcf6
2 changed files with 7 additions and 1 deletions

View File

@@ -31,3 +31,9 @@ repos:
entry: flake8
files: '^.*\.py$'
exclude: '^(doc|releasenotes|tools)/.*$'
- repo: https://opendev.org/openstack/hacking
rev: 7.0.0
hooks:
- id: hacking
additional_dependencies: ['neutron-lib']
exclude: '^(doc|releasenotes|tools)/.*$'

View File

@@ -1,5 +1,5 @@
pbr>=3.0.0 # Apache-2.0
neutron-lib>=1.25.0 # Apache-2.0
neutron-lib>=3.21.1 # Apache-2.0
oslo.config>=5.2.0 # Apache-2.0
netaddr>=0.7.18 # BSD
os-ken>=0.3.0 # Apache-2.0