Add bashate to pep8 tox environment
This commit is contained in:
parent
b3880aa264
commit
6beb880486
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
hacking>=0.12.0,<0.13 # Apache-2.0
|
hacking>=0.12.0,<0.13 # Apache-2.0
|
||||||
|
|
||||||
|
bashate>=0.2 # Apache-2.0
|
||||||
coverage>=4.0 # Apache-2.0
|
coverage>=4.0 # Apache-2.0
|
||||||
doc8 # Apache-2.0
|
doc8 # Apache-2.0
|
||||||
sphinx>=1.5.1 # BSD
|
sphinx>=1.5.1 # BSD
|
||||||
|
7
tools/run-bashate.sh
Executable file
7
tools/run-bashate.sh
Executable 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
|
1
tox.ini
1
tox.ini
@ -19,6 +19,7 @@ commands = unit2 discover {posargs}
|
|||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands =
|
commands =
|
||||||
|
{toxinidir}/tools/run-bashate.sh
|
||||||
flake8 {posargs} kayobe
|
flake8 {posargs} kayobe
|
||||||
# Check the *.rst files
|
# Check the *.rst files
|
||||||
# We use a thin wrapper around doc8 currently, which has support for sphinx
|
# We use a thin wrapper around doc8 currently, which has support for sphinx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user