Added codestyle check and lint to the build action (#798)

* Applied `make format`

* Added format-check to makefile

* Added a "Check codestyle" step to the build action.

* Rerun `make format`

* Added a "lint" target to makefile

* Added lint step to the build action

* Added W503 to the list of ignored flake8 errors.

See https://www.flake8rules.com/rules/W503.html
This commit is contained in:
Matyáš Richter
2021-11-23 08:13:11 +01:00
committed by GitHub
parent 0f68923b8b
commit 48d1be87a4
12 changed files with 46 additions and 47 deletions

View File

@ -1,10 +1,9 @@
import contextlib
from fastapi_users.manager import UserAlreadyExists
from app.db import get_user_db
from app.models import UserCreate
from app.users import get_user_manager
from fastapi_users.manager import UserAlreadyExists
get_user_db_context = contextlib.asynccontextmanager(get_user_db)
get_user_manager_context = contextlib.asynccontextmanager(get_user_manager)