pre-commit: Bump versions

Also migrate to the hacking native check.

Change-Id: I2a03f80148d370a7b8c24c99ec835223f1bfaae9
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2025-05-20 10:25:32 +01:00
parent 9503a8957d
commit de53d622a2

View File

@@ -4,7 +4,7 @@ default_language_version:
python: python3 python: python3
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: v5.0.0
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
- id: mixed-line-ending - id: mixed-line-ending
@@ -15,7 +15,7 @@ repos:
- id: check-merge-conflict - id: check-merge-conflict
- id: debug-statements - id: debug-statements
- repo: https://github.com/PyCQA/bandit - repo: https://github.com/PyCQA/bandit
rev: 1.7.5 rev: 1.8.3
hooks: hooks:
- id: bandit - id: bandit
# B104: Possible binding to all interfaces # B104: Possible binding to all interfaces
@@ -25,25 +25,22 @@ repos:
files: 'neutron_lib/' files: 'neutron_lib/'
exclude: 'neutron_lib/tests' exclude: 'neutron_lib/tests'
- 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/pre-commit/mirrors-mypy - repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1 rev: v1.15.0
hooks: hooks:
- id: mypy - id: mypy
pass_filenames: false pass_filenames: false
- repo: local - repo: https://opendev.org/openstack/hacking
rev: 7.0.0
hooks: hooks:
- id: flake8 - id: hacking
name: flake8
additional_dependencies: additional_dependencies:
- hacking>=6.1.0,<6.2.0 - flake8-import-order~=0.18.2
- neutron - neutron
language: python
entry: flake8
files: '^.*\.py$'
exclude: '^(doc|releasenotes|tools)/.*$' exclude: '^(doc|releasenotes|tools)/.*$'
# TODO(slaweq): enable pylint check once all issues in the current code will # TODO(slaweq): enable pylint check once all issues in the current code will
# be solved # be solved