From 83a63a2af026b35386552e0a2bc641285143890d Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Wed, 4 Jan 2017 13:14:33 +0000 Subject: [PATCH] tox: Add 'bashate' target This is not as powerful as Shellcheck (yet), but it's Python and therefore installable in a virtualenv. Signed-off-by: Stephen Finucane Reviewed-by: Daniel Axtens --- tox.ini | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tox.ini b/tox.ini index 319a8c70..bf38f8f4 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.47.3