[openstack-dev] [Cinder] pep8 issues and how to pep8 locally ?

Avishay Traeger avishay at stratoscale.com
Mon Apr 28 10:24:54 UTC 2014


Deepak,
Sean meant that 'tox -epep8' is the command that runs the pep8 checks.
You can install tox with 'pip install tox' and pep8 with 'pip install
pep8'.  Once you have those, run 'tox -epep8'

Thanks,
Avishay


On Mon, Apr 28, 2014 at 1:15 PM, Deepak Shetty <dpkshetty at gmail.com> wrote:

> [stack at devstack-vm cinder]$ sudo pip install tox-epep8
> Downloading/unpacking tox-epep8
>   Could not find any downloads that satisfy the requirement tox-epep8
> Cleaning up...
> No distributions at all found for tox-epep8
> Storing complete log in /root/.pip/pip.log
>
> [stack at devstack-vm cinder]$ sudo yum search tox-epep8
> Warning: No matches found for: tox-epep8
> No matches found
> [stack at devstack-vm cinder]$
>
>
>
> On Mon, Apr 28, 2014 at 3:39 PM, Sean Dague <sean at dague.net> wrote:
>
>> On 04/28/2014 06:08 AM, Deepak Shetty wrote:
>> > Hi,
>> >
>> > H703  Multiple positional placeholders
>> >
>> > I got this for one of my patch and googling i could find that the fix is
>> > to use
>> > dict instead of direct substitues.. which i did.. but it still gives me
>> > the error :(
>> >
>> > Also just running pep8 locally on my glsuterfs.py file doesn't show any
>> > issue
>> > but gerrit does.
>> > So how do i run the same pep8 that gerrit does locally on my box, so
>> > that I don't end up resending new patches due to failed gerrit build
>> > checks ?
>>
>> tox -epep8
>>
>>         -Sean
>>
>> --
>> Sean Dague
>> http://dague.net
>>
>>
>> _______________________________________________
>> 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/20140428/f70e63f4/attachment.html>


More information about the OpenStack-dev mailing list