cb497e83f9
- removes ansible-lint as we have no ansible files here - bumps linter versions - fixes newly found errors - return to more interesting work Change-Id: Iaaf0a850c8429fe041a595028cbc31b9ff0fb9e5 Partial-Bug: #1878150
30 lines
1022 B
YAML
30 lines
1022 B
YAML
---
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v2.5.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: mixed-line-ending
|
|
- 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://gitlab.com/pycqa/flake8.git
|
|
rev: 3.8.1
|
|
hooks:
|
|
- id: flake8
|
|
- repo: https://github.com/openstack-dev/bashate.git
|
|
rev: 2.0.0
|
|
hooks:
|
|
- id: bashate
|
|
entry: bashate --error . --ignore=E006,E040,E042
|
|
# Run bashate check for all bash scripts
|
|
# Ignores the following rules:
|
|
# E006: Line longer than 79 columns (as many scripts use jinja
|
|
# templating, this is very difficult)
|
|
# E040: Syntax error determined using `bash -n` (as many scripts
|
|
# use jinja templating, this will often fail and the syntax
|
|
# error will be discovered in execution anyway)
|