[PATCH 4/4] tox: Add 'bashate' target

Stephen Finucane stephen at that.guru
Tue Jan 31 10:01:45 AEDT 2017


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

Signed-off-by: Stephen Finucane <stephen at that.guru>
---
 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



More information about the Patchwork mailing list