Hi,

I've recently started using flake8 and rather like it.

However, there are some cases where I want to turn off particular
warnings per-file.

For example, in one .py file I have many lines like this:

    if DEBUG: print(...)

Using # noqa on these doesn't work.

What I'd like to do is put at the top of this file:

    # flake8: ignore = E701

since normally I do want this warning.

I'm using Debian stable:
$ py3 -m flake8 --version
2.2.2 (pep8: 1.4.6, pyflakes: 0.8.1, mccabe: 0.2.1) CPython 3.4.3+ on Linux

Best wishes,
-- 
Mark Summerfield, Qtrac Ltd.
    "Python in Practice" - Dr Dobbs JOLT best book award winner
        http://www.qtrac.eu/pipbook.html
_______________________________________________
code-quality mailing list
code-quality@python.org
https://mail.python.org/mailman/listinfo/code-quality

Reply via email to