bb03564cfd
Change-Id: I9401cf21f00c669f81e6e279ec20736e34664b96 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
---
|
|
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
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: mixed-line-ending
|
|
args: ['--fix', 'lf']
|
|
exclude: '.*\.(svg)$'
|
|
- id: check-byte-order-marker
|
|
- id: check-executables-have-shebangs
|
|
- id: check-merge-conflict
|
|
- id: debug-statements
|
|
# nova/cmd/manage.py imports pdb on purpose.
|
|
exclude: 'nova/cmd/manage.py'
|
|
- id: check-yaml
|
|
files: .*\.(yaml|yml)$
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
|
rev: v1.5.4
|
|
hooks:
|
|
- id: remove-tabs
|
|
exclude: '.*\.(svg)$'
|
|
- repo: https://opendev.org/openstack/hacking
|
|
rev: 6.0.1
|
|
hooks:
|
|
- id: hacking
|
|
additional_dependencies: []
|
|
exclude: '^(doc|releasenotes|tools)/.*$'
|
|
- repo: https://github.com/pre-commit/mirrors-autopep8
|
|
rev: v2.0.4
|
|
hooks:
|
|
- id: autopep8
|
|
files: '^.*\.py$'
|