Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format fixes #159

Merged
merged 2 commits into from
Apr 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,17 @@ After using this generator, your new project (the directory created) will contai

### Latest Changes

* Refactor backend:
* Simplify configs for tools and format to better support editor integration.
* Add mypy configurations and plugins.
* Add types to all the codebase.
* Update types for SQLAlchemy models with plugin.
* Update and refactor CRUD utils.
* Refactor DB sessions to use dependencies with `yield`.
* Refactor dependencies, security, CRUD, models, schemas, etc. To simplify code and improve autocompletion.
* Change from PyJWT to Python-JOSE as it supports additional use cases.
* Fix JWT tokens using user email/ID as the subject in `sub`.
* PR [#158](https://github.com/tiangolo/full-stack-fastapi-postgresql/pull/158).
* Add docs about removing the frontend, for an API-only app. PR [#156](https://github.com/tiangolo/full-stack-fastapi-postgresql/pull/156).
* Simplify scripts and development, update docs and configs. PR [#155](https://github.com/tiangolo/full-stack-fastapi-postgresql/pull/155).
* Simplify `docker-compose.*.yml` files, refactor deployment to reduce config files. PR [#153](https://github.com/tiangolo/full-stack-fastapi-postgresql/pull/153).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .crud_item import item # noqa: F401
from .crud_user import user # noqa: F401
from .crud_item import item
from .crud_user import user

# For a new basic set of CRUD operations you could just do

Expand Down
2 changes: 0 additions & 2 deletions {{cookiecutter.project_slug}}/backend/app/app/schemas/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

from pydantic import BaseModel

from .user import User # noqa: F401


# Shared properties
class ItemBase(BaseModel):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from app.core.config import settings
from app.tests.utils.item import create_random_item
from app.tests.utils.user import create_random_user # noqa: F401
from app.tests.utils.utils import get_server_api


Expand Down
1 change: 0 additions & 1 deletion {{cookiecutter.project_slug}}/backend/app/scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ set -x
mypy app
black app --check
isort --recursive --check-only app
vulture app --min-confidence 70
flake8