Commit e30abcc0 authored by Damien Lespiau's avatar Damien Lespiau

tests: Run pep8 tests as part of the tox run

Now that the project doesn't have any pep8 warning/error left, we can
start enforcing PEP8 for new commits.
Signed-off-by: 's avatarDamien Lespiau <damien.lespiau@intel.com>
parent c2ae907c
......@@ -18,6 +18,5 @@ update_virtualenv venv $tests_dir/requirements.txt
tox --recreate
$tests_dir/test_js.sh
$tests_dir/test_pep8.sh
deactivate
#!/bin/sh -e
script_dir=$(cd `dirname $0`; pwd)
root_dir=`dirname $script_dir`
patchwork=$root_dir/patchwork
gitpw=$root_dir/git-pw
files=$(cat <<-END
$patchwork/bin/parsemail.py
$patchwork/admin.py
$patchwork/tests/test_rest.py
$patchwork/views/xmlrpc.py
$gitpw/git-pw
END
)
tox -e pep8 $files
[tox]
minversion = 1.6
envlist = {py27}-django{17,18}
envlist = {py27}-django{17,18}, pep8
skipsdist = True
[testenv]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment