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

Sahid Orentino Ferdjaoui sahid.ferdjaoui at redhat.com
Mon Dec 15 10:44:49 UTC 2014


On Mon, Dec 15, 2014 at 09:37:23AM +0000, Daniel P. Berrange wrote:
> 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'

Really useful point!

s.

> 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 :|
> 
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



More information about the OpenStack-dev mailing list