bashate: Enable E003 rule

It seems there are not many lines using 2 spaces now, and the rule can
be easily enabled.

Change-Id: I54ede1fb83b8a150392f9b8c498ea5fa81ef38c0
This commit is contained in:
Takashi Kajinami 2023-02-09 17:36:29 +09:00
parent 34e8dbd49f
commit 4debb6c494
4 changed files with 24 additions and 25 deletions

View File

@ -68,14 +68,13 @@ commands = oslo_debug_helper {posargs}
[testenv:bashate]
# Run bashate check for all bash scripts
# Ignores the following rules:
# E003: Indent not multiple of 4 (we prefer to use multiples of 2)
# E006: Line longer than 79 columns
commands =
bash -c "grep --recursive --binary-files=without-match \
--files-with-match '^.!.*\(ba\)\?sh$' \
--exclude-dir .tox \
--exclude-dir .git \
{toxinidir} | xargs bashate --error . --verbose --ignore=E003,E006"
{toxinidir} | xargs bashate --error . --verbose --ignore=E006"
[flake8]
# E123, E125 skipped as they are invalid PEP-8.