This is not as powerful as Shellcheck (yet), but it's Python and
therefore installable in a virtualenv.

Signed-off-by: Stephen Finucane <[email protected]>
---
 tox.ini | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tox.ini b/tox.ini
index 319a8c7..bf38f8f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -25,6 +25,15 @@ commands =
     {toxinidir}/manage.py test --noinput --liveserver=localhost:9000-9200 \
         '{posargs:patchwork}'
 
+[testenv:bashate]
+deps = bashate>=0.5,<0.6
+whitelist_externals = bash
+commands =
+    bash -c "find {toxinidir} \
+    -not \( -type d -name .?\* -prune \) \
+    -not \( -type d -name db -prune \) \
+    -name \*.sh -print | xargs bashate"
+
 [testenv:pep8]
 basepython = python2.7
 deps = flake8
-- 
2.9.3

_______________________________________________
Patchwork mailing list
[email protected]
https://lists.ozlabs.org/listinfo/patchwork

Reply via email to