Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
Ignore Flake8 unused import error
Browse files Browse the repository at this point in the history
May need the unused import for SQLAlchemy. As the comment says:

make sure all SQL Alchemy models are imported before initializing DB
otherwise, SQL Alchemy might fail to initialize properly relationships
for more details:
tiangolo/full-stack-fastapi-template#28
  • Loading branch information
br3ndonland committed Dec 8, 2019
1 parent 78ca6e1 commit 687a62c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/app/app/crud/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# from . import item, user
from . import item, user # noqa: F401
2 changes: 1 addition & 1 deletion backend/app/app/db/init_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# make sure all SQL Alchemy models are imported before initializing DB
# otherwise, SQL Alchemy might fail to initialize properly relationships
# for more details: https://github.com/tiangolo/full-stack-fastapi-postgresql/issues/28
# from app.db import base
from app.db import base # noqa: F401


def init_db(db_session):
Expand Down

0 comments on commit 687a62c

Please sign in to comment.