Bring Python code into compliance with Black and Flake8 by br3ndonland · Pull Request #121 · fastapi/full-stack-fastapi-template

sobolevn

approved these changes Mar 10, 2020

valentierra added a commit to valentierra/full-stack-fastapi-postgresql that referenced this pull request

Apr 9, 2020

@valentierra

https://flake8.readthedocs.io/en/latest/user/error-codes.html

The apparently unused imports may be needed for SQLAlchemy.

As the code comment says:

make sure all SQL Alchemy models are imported before initializing DB
otherwise, SQL Alchemy might fail to initialize properly relationships

See GitHub 28 and 29

@br3ndonland @tiangolo

@br3ndonland @tiangolo

@br3ndonland @tiangolo

gusevyaroslove pushed a commit to gusevyaroslove/fastapi-template that referenced this pull request

Aug 4, 2024
* Ignore Flake8 unused import error F401

https://flake8.readthedocs.io/en/latest/user/error-codes.html

The apparently unused imports may be needed for SQLAlchemy.

As the code comment says:

make sure all SQL Alchemy models are imported before initializing DB
otherwise, SQL Alchemy might fail to initialize properly relationships

See GitHub 28 and 29

* Ignore Flake8 unused variable error F841

https://flake8.readthedocs.io/en/latest/user/error-codes.html

The apparently unused variables may be needed for tests.

* Bring line length into compliance with Black

Should be 88 characters.

* Format alembic code with Black

alejsdev added a commit that referenced this pull request

Dec 19, 2024