From: Guillaume Lambert Date: Mon, 3 May 2021 18:52:24 +0000 (+0200) Subject: CI: Add bashate tox profile X-Git-Tag: v0.63.1~6 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=1024ff22b0f0009077227a3b5bfff119beeb4bd1;p=releng%2Fglobal-jjb.git CI: Add bashate tox profile Bashate is a shell linter inspired from PEP8. It helps improving shell scripts. Signed-off-by: Guillaume Lambert Change-Id: I351a205cbfdc160660958069a8060badb68aa28a --- diff --git a/tox.ini b/tox.ini index f008b298..fca2afe8 100644 --- a/tox.ini +++ b/tox.ini @@ -76,6 +76,16 @@ commands = git config --global --unset user.email; \ rm -f .git/REMOVE_USEREMAIL; fi" +[testenv:bashate] +basepython = python3 +deps = + bashate +whitelist_externals = sh + find +commands = + find . -not -path '*/\.*' -name *.sh -exec bashate \{\} + + #The option --max-line-length 80 is used by default. + ######### # Tools # #########