[Buildbot-devel] Using pep8 on Buildbot source code

Vladimir Rutsky rutsky.vladimir at gmail.com
Tue Oct 22 08:58:16 UTC 2013


On Tue, Oct 22, 2013 at 4:40 AM, Edmund Wong <ewongbb at pw-wspx.org> wrote:
> Dustin J. Mitchell wrote:
>> My worry with a lot of these is that they can be burdensome for
>> contributors, without adding a lot of value.  So:
>>
>>> 145     E101 indentation contains mixed spaces and tabs
>>> 538     E111 indentation is not a multiple of four
>>> 891     E203 whitespace before ':'
>>> 13      E211 whitespace before '('
>>> 932     E251 unexpected spaces around keyword / parameter equals
>>> 35      E502 the backslash is redundant between brackets
>>> 78      E701 multiple statements on one line (colon)
>>> 8       E703 statement ends with a semicolon
>>> 79      E711 comparison to None should be 'if cond is None:'
>>> 23      E712 comparison to False should be 'if cond is False:' or 'if
>>> not cond:'
>>> 15      E721 do not compare types, use 'isinstance()'
>>> 117     W191 indentation contains tabs
>>> 316     W291 trailing whitespace
>>> 3       W292 no newline at end of file
>>> 421     W293 blank line contains whitespace
>>> 95      W391 blank line at end of file
>>> 47      W601 .has_key() is deprecated, use 'in'
>>> 16      W602 deprecated form of raising exception
>>> 11      W604 backticks are deprecated, use 'repr()'
>>
>> These are important.
>
>
> Is this for 8, 9 or both?  I'm considering working on
> W601, but I'm seeing 68 counts (on 8). (Well, it'd be
> a start.)

This report is for master branch (so it's 8, if you address Buildbot
version). I think for nine branch report will be almost same.

>
> Edmund
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel




More information about the devel mailing list