Added opt-out system for excluding files/dirs from pep8 (using GLOBIGNORE).

This commit is contained in:
Justin Shepherd 2011-05-16 20:08:51 -05:00
parent ea3b85bc27
commit 67148b1093

View File

@ -59,9 +59,14 @@ function run_tests {
function run_pep8 {
echo "Running pep8 ..."
# Opt-out files from pep8
ignore_scripts="*.sh:*nova-debug:*clean-vlans"
ignore_files="*eventlet-patch:*pip-requires"
ignore_dirs="*ajaxterm*"
GLOBIGNORE="$ignore_scripts:$ignore_files:$ignore_dirs"
srcfiles=`find bin -type f ! -name "nova.conf*"`
srcfiles+=" `find tools/*`"
srcfiles+=" nova setup.py plugins/xenserver/xenapi/etc/xapi.d/plugins/glance"
srcfiles+=" tools/esx/guest_tool.py tools/euca-get-ajax-console tools/install_venv.py"
pep8 --repeat --show-pep8 --show-source --exclude=vcsversion.py ${srcfiles}
}