From ee0b47f1a26f172936cc9f7a49a9c6994e7fddc2 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 5 Feb 2016 09:21:32 +0100 Subject: [PATCH] Fix tox file for bashate Newer tox versions parse tox.ini differently, bash like # comments are not parsed after end of line "\" signs. Reformat file so that bashate tox environment works. Change-Id: I365b56053c282ee251acf4d23ff8885272709447 --- tox.ini | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/tox.ini b/tox.ini index 20ecbaa..db4862f 100644 --- a/tox.ini +++ b/tox.ini @@ -10,16 +10,22 @@ install_command = pip install {opts} {packages} [testenv:bashate] deps = bashate whitelist_externals = bash +# The find checks for: +# - prune all 'dot' dirs +# - skip documentation +# - only files +# - skip editors, readme, etc +# - /lib files are shell, but have no extension commands = bash -c "find {toxinidir} \ - -not \( -type d -name .?\* -prune \) \ # prune all 'dot' dirs - -not \( -type d -name doc -prune \) \ # skip documentation - -type f \ # only files - -not -name \*~ \ # skip editors, readme, etc + -not \( -type d -name .?\* -prune \) \ + -not \( -type d -name doc -prune \) \ + -type f \ + -not -name \*~ \ -not -name \*.md \ \( \ -name \*.sh -or \ -name \*rc -or \ -name functions\* -or \ - -wholename \*/lib/\* \ # /lib files are shell, but - \) \ # have no extension + -wholename \*/lib/\* \ + \) \ -print0 | xargs -0 bashate -v"