Skip backup files when running pep8.

Backup files (foo~) are not interesting for a pep8 report.

Change-Id: Ib4a43271c8a0ec47d63e61c45125e3f282415927
This commit is contained in:
Robert Collins
2013-01-23 23:26:39 +13:00
parent fc16bd497c
commit a306fa377c

View File

@@ -118,7 +118,7 @@ function run_pep8 {
# NOTE(lzyeval): Avoid selecting *.pyc files to reduce pep8 check-up time
# when running on devstack.
srcfiles=`find nova -type f -name "*.py" ! -wholename "nova\/openstack*"`
srcfiles+=" `find bin -type f ! -name "nova.conf*" ! -name "*api-paste.ini*"`"
srcfiles+=" `find bin -type f ! -name "nova.conf*" ! -name "*api-paste.ini*" ! -name "*~"`"
srcfiles+=" `find tools -type f -name "*.py"`"
srcfiles+=" `find plugins -type f -name "*.py"`"
srcfiles+=" `find smoketests -type f -name "*.py"`"