[openstack-dev] Why pylint check ok but pep8 is not?

Xiao Hanyu hanyu.xiao at eayun.com
Fri Jun 7 06:33:56 UTC 2013


hi:

pep8 and pylint check different things.

IMHO, pep8 focus on code styles, while pylint focus more on code 
logics.  And pep8 already give lots of hints about your coding styles 
problems.

Thanks.
On 06/07/2013 12:44 PM, Qinglong.Meng wrote:
>
> Hi all,
>    Here is my test python:
> http://paste.openstack.org/show/38228/
>    $ pylint --rcfile=pylintrc ~/test.py #pass
>    $ pep8 ~/test.py
>    /home/longeek/test.py:3:1: E122 continuation line missing 
> indentation or outdented
>    /home/longeek/test.py:5:1: E122 continuation line missing 
> indentation or outdented
>    /home/longeek/test.py:10:46: E203 whitespace before ':'
>    /home/longeek/test.py:10:12: E221 multiple spaces before operator
>    /home/longeek/test.py:10:17: E222 multiple spaces after operator
>
> I confuse about it?
>
> Any body help me..
>
> Tks
>
> -- 
>
> Lawrency Meng
> mail: mengql112233 at gmail.com <mailto:mengql112233 at gmail.com>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack 
> <https://launchpad.net/%7Eopenstack>
> Post to     : openstack at lists.launchpad.net 
> <mailto:openstack at lists.launchpad.net>
> Unsubscribe : https://launchpad.net/~openstack 
> <https://launchpad.net/%7Eopenstack>
> More help   : https://help.launchpad.net/ListHelp
>
>
> _______________________________________________
> 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/20130607/0ec67d6d/attachment.html>


More information about the OpenStack-dev mailing list