pre-commit: Bump hacking and use native flake8 hook

Pull the latest content in manila repo to use the consistent setting
across repos.

Change-Id: Ib0d3678f558b273df5b4cb6d389f2073afd3fca8
This commit is contained in:
Takashi Kajinami
2025-06-11 15:48:25 +09:00
parent ce60e4845a
commit 0a6c1f08ca

View File

@@ -1,10 +1,7 @@
---
default_language_version:
# force all unspecified python hooks to run python3
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: mixed-line-ending
@@ -27,13 +24,9 @@ repos:
hooks:
- id: bashate
args: ['--ignore', 'E006,E042,E043']
- repo: local
- repo: https://opendev.org/openstack/hacking
rev: 6.1.0
hooks:
- id: flake8
name: flake8
additional_dependencies:
- hacking>=6.1.0,<6.2.0
language: python
entry: flake8
files: '^.*\.py$'
exclude: '^(doc|releasenotes|tools)/.*$'
- id: hacking
additional_dependencies: []
exclude: '^(doc|releasenotes|tools)/.*$'