CI: Add bashate tox profile 70/67570/7
authorGuillaume Lambert <guillaume.lambert@orange.com>
Mon, 3 May 2021 18:52:24 +0000 (20:52 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Tue, 11 May 2021 19:20:46 +0000 (21:20 +0200)
Bashate is a shell linter inspired from PEP8.
It helps improving shell scripts.

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I351a205cbfdc160660958069a8060badb68aa28a

tox.ini

diff --git a/tox.ini b/tox.ini
index f008b29..fca2afe 100644 (file)
--- 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 #
 #########