From 1024ff22b0f0009077227a3b5bfff119beeb4bd1 Mon Sep 17 00:00:00 2001 From: Guillaume Lambert Date: Mon, 3 May 2021 20:52:24 +0200 Subject: [PATCH] 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 --- tox.ini | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 # ######### -- 2.16.6