heat/tools/run_pep8.sh
Clint Byrum 224e0be8fc Remove broken --doctest call from run_pep8.sh
It does not seem to actually be required and causes the script to fail
when not running inside tox.

Change-Id: Ib5be301054b08623ea31a97c1b2d6c341e7fdd3e
2013-04-30 13:51:31 -07:00

18 lines
542 B
Bash
Executable File

#!/bin/bash
set -e
# Until all these issues get fixed, ignore.
PEP8='python tools/hacking.py --ignore=N101,N201,N202,N301,N302,N303,N304,N305,N306,N401,N402,N403,N404,N702,N703,N801,N902'
EXCLUDE='--exclude=.venv,.git,.tox,dist,doc,*lib/python*'
EXCLUDE+=',*egg,build,*tools*'
# Check all .py files
${PEP8} ${EXCLUDE} .
# Check binaries without py extension
${PEP8} bin/heat-api bin/heat-api-cfn bin/heat-api-cloudwatch bin/heat-cfn bin/heat-engine bin/heat-watch
! pyflakes heat/ | grep "imported but unused\|redefinition of function"