If I'm running pylint
from the command line, I'd load the pylint_flask_sqlalchemy
plugin by running:
pylint --load-plugins pylint_flask_sqlalchemy app.py
If I were running VScode
, I would add a few lines to settings.json
.
But I'm running pylint
through flycheck
on Emacs
. Everything is configured properly and runs fine, except that on
class Links(db.Model):
__tablename__ = 'links'
id = db.Column(db.Integer, autoincrement=True)
I get:
Instance of 'SQLAlchemy' has no 'Column' member [no-member]
How do I load the flask-sqlalchemy
plugin for flycheck (pylint)
on Emacs
?
You can specify options in flycheck-pylintrc
("pylintrc" ".pylintrc" "pyproject.toml" "setup.cfg"
) in the workspace folder, which is located by the functions from flycheck-locate-config-file-functions
.
Here is an example of pyproject.toml
from Github.