Make bashate checks as part of pep8 checks

Change-Id: I2b070423eff71be760b737ed1bbf7c18f32aada8
This commit is contained in:
Sergey Reshetnyak 2014-12-07 13:16:46 +03:00
parent 8282b4a37f
commit 091330418b
2 changed files with 6 additions and 1 deletions

3
tools/run_bashate.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash -xe
find ./ -not -wholename \*.tox/\* -and \( -name \*.sh -or -wholename \*.d/\* -and -not -name \*.md -and -not -name \*.rst -and -not -name \*.py \) -print0 | xargs -0 bashate -v

View File

@ -20,7 +20,9 @@ whitelist_externals = bash
commands = bash -c "find {toxinidir} -not -wholename \*.tox/\* -and \( -name \*.sh -or -wholename \*.d/\* -and -not -name \*.md -and -not -name \*.rst -and -not -name \*.py \) -print0 | xargs -0 bashate -v"
[testenv:pep8]
commands = flake8 {posargs}
commands =
flake8 {posargs}
{toxinidir}/tools/run_bashate.sh
[testenv:venv]
commands = {posargs}