stop ignoring flake8 e402

This commit is contained in:
David Lord 2023-01-19 06:35:15 -08:00
parent 78b42b9ac2
commit 3a35977d5f
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
3 changed files with 3 additions and 5 deletions

View file

@ -9,8 +9,6 @@ extend-select =
extend-ignore = extend-ignore =
# slice notation whitespace, invalid # slice notation whitespace, invalid
E203 E203
# import at top, too many circular import fixes
E402
# line length, handled by bugbear B950 # line length, handled by bugbear B950
E501 E501
# bare except, handled by bugbear B001 # bare except, handled by bugbear B001

View file

@ -2,4 +2,4 @@ from flask import Flask
app = Flask(__name__) app = Flask(__name__)
from js_example import views # noqa: F401 from js_example import views # noqa: E402, F401

View file

@ -2,8 +2,8 @@ from flask import Flask
app = Flask(__name__) app = Flask(__name__)
app.config["DEBUG"] = True app.config["DEBUG"] = True
from blueprintapp.apps.admin import admin from blueprintapp.apps.admin import admin # noqa: E402
from blueprintapp.apps.frontend import frontend from blueprintapp.apps.frontend import frontend # noqa: E402
app.register_blueprint(admin) app.register_blueprint(admin)
app.register_blueprint(frontend) app.register_blueprint(frontend)