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
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2ff8c11..e675c10 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -31,3 +31,9 @@
         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)/.*$'
diff --git a/requirements.txt b/requirements.txt
index 478c1fa..eee78f8 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -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