use ruff linter and formatter

This commit is contained in:
David Lord 2023-11-09 09:20:27 -08:00
parent 14232513fd
commit 54e05a2824
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
26 changed files with 99 additions and 132 deletions

View file

@ -31,12 +31,13 @@ def create_app(test_config=None):
return "Hello, World!"
# register the database commands
from flaskr import db
from . import db
db.init_app(app)
# apply the blueprints to the app
from flaskr import auth, blog
from . import auth
from . import blog
app.register_blueprint(auth.bp)
app.register_blueprint(blog.bp)

View file

@ -11,7 +11,7 @@ from flask import url_for
from werkzeug.security import check_password_hash
from werkzeug.security import generate_password_hash
from flaskr.db import get_db
from .db import get_db
bp = Blueprint("auth", __name__, url_prefix="/auth")

View file

@ -7,8 +7,8 @@ from flask import request
from flask import url_for
from werkzeug.exceptions import abort
from flaskr.auth import login_required
from flaskr.db import get_db
from .auth import login_required
from .db import get_db
bp = Blueprint("blog", __name__)