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