Add bashate to pep8 tox environment

This commit is contained in:
Mark Goddard 2018-02-06 11:54:12 +00:00
parent b3880aa264
commit 6beb880486
3 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,7 @@
hacking>=0.12.0,<0.13 # Apache-2.0
bashate>=0.2 # Apache-2.0
coverage>=4.0 # Apache-2.0
doc8 # Apache-2.0
sphinx>=1.5.1 # BSD

7
tools/run-bashate.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
# Ignore E006 -- line length greater than 80 char
ROOT=$(readlink -fn $(dirname $0)/.. )
find $ROOT -not -wholename \*.tox/\* -and -not -wholename \*.test/\* \
-and -name \*.sh -print0 | xargs -0 bashate -v --ignore E006

View File

@ -19,6 +19,7 @@ commands = unit2 discover {posargs}
[testenv:pep8]
commands =
{toxinidir}/tools/run-bashate.sh
flake8 {posargs} kayobe
# Check the *.rst files
# We use a thin wrapper around doc8 currently, which has support for sphinx