[openstack-dev] anyway to pep8 check on a specified file

Daniel P. Berrange berrange at redhat.com
Mon Dec 15 09:37:23 UTC 2014


On Mon, Dec 15, 2014 at 05:04:59PM +0800, Chen CH Ji wrote:
> 
> tox -e pep8 usually takes several minutes on my test server, actually I
> only changes one file and I knew something might wrong there
> anyway to only check that file? Thanks a lot

Use

  ./run_tests.sh -8


That will only check pep8 against the files listed in the current
commit. If you want to check an entire branch patch series then

  git rebase -i master  -x './run_tests.sh -8'

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|



More information about the OpenStack-dev mailing list