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

Sylvain Bauza sbauza at redhat.com
Mon Dec 15 09:27:05 UTC 2014

Le 15/12/2014 10:04, Chen CH Ji a écrit :
> 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
That's really non necessary to check all the files if you only modified 
a single one.
You can just take the files you modified and run a check by doing this :

git diff HEAD^ --name-only | xargs tools/with_venv.sh flake8

Hope it helps,

> Best Regards!
> Kevin (Chen) Ji 纪 晨
> Engineer, zVM Development, CSTL
> Notes: Chen CH Ji/China/IBM at IBMCN   Internet: jichenjc at cn.ibm.com
> Phone: +86-10-82454158
> Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian 
> District, Beijing 100193, PRC
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141215/1c7b4af6/attachment.html>

More information about the OpenStack-dev mailing list