[openstack-dev] anyway to pep8 check on a specified file
Sylvain Bauza
sbauza at redhat.com
Mon Dec 15 09:37:58 UTC 2014
Le 15/12/2014 10:27, Sylvain Bauza a écrit :
>
> 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
>
>
Eh, just replying to myself, I just saw there is a recent commit which
added a -8 flag to run_tests for checking PEP8 only against HEAD.
https://review.openstack.org/#/c/110746/
That's worth it :-)
> Hope it helps,
> -Sylvain
>
>
>> 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
>
>
>
> _______________________________________________
> 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/c45bb469/attachment.html>
More information about the OpenStack-dev
mailing list