Registry / testing / pylint-flask-sqlalchemy

pylint-flask-sqlalchemy

JSON →
library0.2.0pypypi✓ verified 88d ago

A Pylint plugin that improves code analysis for Flask-SQLAlchemy by teaching Pylint about SQLAlchemy's dynamic attributes and relationships. Version 0.2.0 is the latest. Low release cadence, last updated in 2018.

pip install pylint-flask-sqlalchemy
INSTALL
IMPORT
SIG · PYLINT-FLASK-SQLAL
P
pylint-flask-sqlalchemy
testingpythonv0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

no-member
✓ from pylint_flask_sqlalchemy import register
✗ import pylint_flask_sqlalchemy
Correct usage: call register(linter) in pylint plugin loading.

Enable the plugin either in .pylintrc or via command line. The plugin teaches Pylint about SQLAlchemy's dynamic column attributes and relationships.

# In your .pylintrc: [MASTER] load-plugins=pylint_flask_sqlalchemy # Or via command line: pylint --load-plugins=pylint_flask_sqlalchemy myapp.py
Debug
Known issues
deprecatedSupport for Python 3.5 only; Python 3.6+ may require adjustments. The library is no longer actively maintained.
fix
Consider migrating to pylint-sqlalchemy or directly configuring pylint's generated-members.
affects: >=0.2.0
gotchaThe plugin may not work with newer versions of pylint (2.x+). The last release (0.2.0) was published in 2018 and may have compatibility issues.
fix
Check compatibility with your pylint version; consider using pylint-extension or contrib plugins.
affects: >=0.2.0
gotchaThe plugin only handles Flask-SQLAlchemy's `db.Model` and common patterns; custom attributes or dynamic models may still trigger false positives.
fix
Use `generated-members` in pylintrc or ignore specific warnings manually.
affects: >=0.2.0
Errors
Common errors & fixes
Module 'pylint_flask_sqlalchemy' not found
Plugin not installed or incorrect import path.
fix
Run `pip install pylint-flask-sqlalchemy` and ensure the package is in your Python path.
E: 10, 0: Instance of 'User' has no 'name' member (no-member)
Pylint not recognizing SQLAlchemy columns.
fix
Load the plugin via .pylintrc or command line: `--load-plugins=pylint_flask_sqlalchemy`.
pylint: error: unrecognized arguments: --load-plugins=pylint_flask_sqlalchemy
Old pylint version that doesn't support the option or the plugin is not installed.
fix
Upgrade pylint to at least 1.7 or ensure the plugin is installed and accessible.
Upgrade
Version history
0.2.0latest on PyPI · released Jan 14, 2020
Audit
Dependencies
pylintrequiredRuntime dependency
flask-sqlalchemyrequiredRuntime dependency
Agent activity
7 hits · last 30 days
node
6
Resources
pylint-flask-sqlalchemy — pip install pylint-flask-sqlalchemy · libregistry