I have flask project and the structure of my init.py at the highest level is like:
import flask
from flask_sqlalchemy import SQLAlchemy
flask_app = flask.Flask(__name__)
db = SQLAlchemy(flask_app)
...
import routes
from . import models
However I have a warning from pylint:
Import "import routes" should be placed at the top of the module
If I move that import to the top of the module, it fails. So, I would like to avoid that warning, maybe add it to exceptions. Could somebody advice, how to deal with such exceptions?