zaqar/tools/run_pep8.sh
kgriffs 6b6fe59bc0 style: Enable pep8 warnings/errors and fix ensuing chaos
Change-Id: I8dc2ccc148357019d822bc7e747608abc713e9e0
2013-03-20 18:33:38 -04:00

18 lines
462 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=N404'
EXCLUDE='--exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*'
EXCLUDE+=',./tools'
EXCLUDE+=',*egg,build'
${PEP8} ${EXCLUDE} .
${PEP8} --filename=marconi* bin
! pyflakes marconi/ | grep "imported but unused\|redefinition of function" | grep -v "__init__.py"