klen/python-mode — Issue #39: inline pylint override appears to break python mode
Author: slestak
Created: 2012-01-12 23:03:29+00:00
State: open

I have the following method in a new script.

#def create_app(database_uri='sqlite://'):
# """ Construct the flask application """
# app = Flask(__name__)
# app.config.from_object(settings)
#
# DB.create_all(app=app)
#
# @app.route('/')
# def index(): # pylint: disable=C0111,W0612
# return "we're live"
# return app

Whether it is commented in out out, that pylint directive does its work and suppresses the docstring (and one other error) but it does something bad to the Quickfix List.

[Quickfix List]
Quickfix: 16
Error detected while processing function pymode#lint#Check..pymode#PlaceSigns:
line 3:
E155: Unknown sign: I
E155: Unknown sign: I
Press ENTER or type command to continue