Settings preferences to pyflakes (with python-mode in vim)

104 views
Skip to first unread message

alonn

unread,
Apr 20, 2014, 4:07:08 PM4/20/14
to pywe...@googlegroups.com
I'm getting lots of errors I don't care about: mostly this kind:

fabfile.py|2 error| W0611 'os' imported but unused [pyflakes]

when I import something I'm going to use later but not yet

Is there a way (similar to a .jshintrc) file to Silence certain pyflakes errors warnings?

Thanks!

ronny

unread,
Apr 23, 2014, 9:12:20 AM4/23/14
to pywe...@googlegroups.com
It's annoying at first, but I've found it pretty helpful.   Just comment out the line until you need it.

Shai Berger

unread,
Apr 23, 2014, 9:52:49 AM4/23/14
to pywe...@googlegroups.com
Not sure about pyflakes, but flake8 (which, IIUC, runs both pyflakes and pep8
checks) lets you put a [flake8] section in a setup.cfg file (or possibly some
other places).

As an example, see attached Django's setup.cfg.

HTH,
Shai.

setup.cfg

alonn

unread,
Apr 24, 2014, 2:57:32 AM4/24/14
to pywe...@googlegroups.com
Thanks! I'll try that

alonn

unread,
Apr 24, 2014, 4:03:18 AM4/24/14
to pywe...@googlegroups.com
Btw (If someone bumps into it) I got a SO answer that specifically for vim I can also:

let g:pymode_lint_ignore = "W0611"
Reply all
Reply to author
Forward
0 new messages