2f49a663e6
Change-Id: Ic4e860a2517adecda8d15802bb2015c805869fa7 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.6.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
# Replaces or checks mixed line ending
|
|
- id: mixed-line-ending
|
|
args: ['--fix', 'lf']
|
|
exclude: '.*\.(svg)$'
|
|
# Forbid files which have a UTF-8 byte-order marker
|
|
- id: check-byte-order-marker
|
|
# Checks that non-binary executables have a proper shebang
|
|
- id: check-executables-have-shebangs
|
|
# Check for files that contain merge conflict strings.
|
|
- id: check-merge-conflict
|
|
# Check for debugger imports and py37+ breakpoint()
|
|
# calls in python source
|
|
- id: debug-statements
|
|
- id: check-yaml
|
|
files: .*\.(yaml|yml)$
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.6.2
|
|
hooks:
|
|
- id: ruff
|
|
args: ['--fix']
|
|
- id: ruff-format
|
|
- repo: https://opendev.org/openstack/hacking
|
|
rev: 7.0.0
|
|
hooks:
|
|
- id: hacking
|
|
additional_dependencies: []
|
|
exclude: '^(doc|releasenotes)/.*$'
|