Set 'ignore' within a source file #12

jek opened this Issue Oct 22, 2009 · 3 comments


None yet

3 participants

jek commented Oct 22, 2009

It would be great to have comment-style pragmas to disable certain checks for a statement. A simple global setting inside the file would be useful to start.

# pep8-ignore: E241
for spec in ((u'123',    123,  u'123'),
             (u' 123 ',  123,  u'123'),
             (u'xyz',    None, u'xyz')):

Or globally within a file:

# /usr/bin/python
# -*- coding: utf-8; pep-ignore: E241 -*-

I'm weary of turning into a super powerful configurable tool like pylint. We already have pylint and it's awesome.

That said something like pylint's: "#pylint: disable-msg=X0123" would be useful. I'll think it over.

Any conclusions? :)


Sorry, you need to be looking here

@cburroughs cburroughs closed this Apr 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment