Also bump the versions, switch to the native hacking pre-commit hook, fix some bandit issues that have crept in, and add descriptions for all tox jobs. Change-Id: I4717023ad81bd2899114f30bd5320a29654f8f12 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
31 lines
825 B
YAML
31 lines
825 B
YAML
---
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: mixed-line-ending
|
|
args: ['--fix', 'lf']
|
|
- id: check-byte-order-marker
|
|
- id: check-executables-have-shebangs
|
|
- id: check-merge-conflict
|
|
- id: debug-statements
|
|
- id: check-yaml
|
|
files: .*\.(yaml|yml)$
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
|
rev: v1.5.5
|
|
hooks:
|
|
- id: remove-tabs
|
|
exclude: '.*\.(svg)$'
|
|
- repo: https://github.com/PyCQA/bandit
|
|
rev: 1.8.5
|
|
hooks:
|
|
- id: bandit
|
|
exclude: '^novaclient/tests/.*$'
|
|
- repo: https://opendev.org/openstack/hacking
|
|
rev: 7.0.0
|
|
hooks:
|
|
- id: hacking
|
|
additional_dependencies: []
|
|
exclude: '^(doc|releasenotes|tools)/.*$'
|