[openstack-dev] anyway to pep8 check on a specified file
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.
That's worth it :-)
> 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
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev