zaqar/tools/run_pep8.sh
Flaper Fesp 420c1e046c Added hacking file
As part of adding the hacking file, this patch adds some files taken
from nova project that will help with the coding standards validation.

Tox now uses run_pep8 for the pep8 test

Change-Id: I0784390a0b13c9694e358563d43e5442592a785e
2013-03-07 18:07:53 +01:00

17 lines
471 B
Bash
Executable File

#!/bin/bash
set -e
# This is used by run_tests.sh and tox.ini
python tools/hacking.py --doctest
# Until all these issues get fixed, ignore.
PEP8='python tools/hacking.py --ignore=E12,E711,E721,E712,N303,N403,N404'
EXCLUDE='--exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*'
EXCLUDE+=',*egg,build'
${PEP8} ${EXCLUDE} .
${PEP8} --filename=marconi* bin
! pyflakes marconi/ | grep "imported but unused\|redefinition of function" | grep -v "__init__.py"