Ah, I'm not so sure about pyflakes - pyflakes is not as configurable as
pep8 is, and I don't think # noqa works there.

I think there are also some alternatives (I think flakes8 might allow
filtering), or we could add our own filtering to pyflakes -- we have our
own configuration in Jenkins already.

Merlijn


On 4 November 2013 22:17, <[email protected]> wrote:

> # noqa works? I saw your last mail where you had doubts or I interpreted
> it in this way.
>
> Anyway, a lot of pyflakes reported messages are wrong and I would like to
> ignore these parts line by line if it is really wrong.
> ------------------------------
> Von: Merlijn van Deen
> Gesendet: 03.11.2013 21:50
> An: Pywikipedia discussion list
>
> Betreff: Re: [Pywikipedia-l] python styling (pep8/pyflakes)
>
> Some of them (I think mainly the line breaking ones) can be ignored by
> adding  # noqa
> to the end of the line. If we really need something more than that, we can
> look at a custom
> solution. What was the line that was giving you trouble?
>
> Merlijn
>
>
> On 3 November 2013 13:30, <[email protected]> wrote:
>
>> Hi folks,
>>
>> is there any ability now to ignore pep8 or pyflake testing from a
>> specific code line?
>>
>> Greetings
>>
>> xqt
>>
>>
>> ----- Original Nachricht ----
>> Von:     Antoine Musso <[email protected]>
>> An:      [email protected]
>> Datum:   29.07.2013 21:41
>> Betreff: Re: [Pywikipedia-l] python styling (pep8/pyflakes)
>>
>> > Le 29/07/13 21:19, Merlijn van Deen a écrit :
>> > > Hm, indeed. # noqa is only supported in v1.4.1+; # nopep8 was
>> introduced
>> > > in v1.4+, and thus is also not available in 1.3. Would it be possible
>> to
>> > > upgrade to a more recent version? Ubuntu Saucy has 1.4.5 available.
>> > >
>> > > Merlijn
>> >
>> > I apparently managed to backport pep8 1.4.5 from Saucy to Precise using
>> > the tutorial at:
>> >
>> >   https://wikitech.wikimedia.org/wiki/Backport_packages
>> >
>> > I have installed the package on the instance and it seems to be running
>> > fine.  I have filled https://bugzilla.wikimedia.org/52239 to record the
>> > log of the build and track the backporting itself.
>> >
>> > I will have to announce the upgrade ahead of time since it will
>> > introduce new failures that might makes some repos to suddenly fail
>> > their pep8 check.
>> >
>> >
>> > --
>> > Antoine "hashar" Musso
>> >
>> >
>> > _______________________________________________
>> > Pywikipedia-l mailing list
>> > [email protected]
>> > https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>> >
>>
>> _______________________________________________
>> Pywikipedia-l mailing list
>> [email protected]
>> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>>
>
>
> _______________________________________________
> Pywikipedia-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>
>
_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to