
4 Aug
2015
4 Aug
'15
2:58 a.m.
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
2867
Age (days ago)
2867
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mark Summerfield