Skip to content

Commit

Permalink
fix: isort black
Browse files Browse the repository at this point in the history
  • Loading branch information
Valbou committed Nov 6, 2023
1 parent 04f5508 commit 356dedc
Show file tree
Hide file tree
Showing 31 changed files with 1,125 additions and 23 deletions.
1 change: 0 additions & 1 deletion build/lib/base/hmi/flask/routes.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from json import loads

from flask import Blueprint, jsonify, render_template

from src.base.config import AVAILABLE_LANGUAGES, VERSION
from src.libs.flask.utils import ResponseAPI
from src.libs.openapi.base import openapi
Expand Down
1 change: 0 additions & 1 deletion build/lib/flask.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from flask import Flask

from src.libs.notifications import NotificationService
from src.libs.redis.database import NoSQLService
from src.libs.sqlalchemy.database import SQLService
Expand Down
1 change: 0 additions & 1 deletion build/lib/tasks/hmi/flask/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from logging import Logger

from flask import Blueprint

from src.libs.openapi.base import openapi

logger = Logger(__name__)
Expand Down
1 change: 0 additions & 1 deletion build/lib/tasks/hmi/flask/api/v1/tags.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from datetime import timedelta

from flask import current_app, g, request

from src.libs.flask.querystring import QueryStringFilter
from src.libs.flask.utils import ResponseAPI
from src.libs.hmi import dto_to_dict, list_dto_to_dict, list_models_to_list_dto
Expand Down
1 change: 0 additions & 1 deletion build/lib/tasks/hmi/flask/api/v1/tasks.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from datetime import timedelta

from flask import current_app, g, request

from src.libs.flask.querystring import QueryStringFilter
from src.libs.flask.utils import ResponseAPI
from src.libs.hmi import dto_to_dict, list_dto_to_dict, list_models_to_list_dto
Expand Down
1 change: 0 additions & 1 deletion build/lib/users/hmi/flask/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from logging import Logger

from flask import Blueprint

from src.libs.openapi.base import openapi

logger = Logger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion build/lib/users/hmi/flask/api/v1/change_email.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from datetime import timedelta

from email_validator import EmailSyntaxError
from flask import current_app, g, request

from flask import current_app, g, request
from src.libs.flask.utils import ResponseAPI
from src.libs.redis import rate_limited
from src.libs.secutity.validators import get_valid_email
Expand Down
1 change: 0 additions & 1 deletion build/lib/users/hmi/flask/api/v1/change_password.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from datetime import timedelta

from flask import current_app, request

from src.libs.flask.utils import ResponseAPI
from src.libs.redis import rate_limited
from src.libs.secutity.validators import PasswordComplexityError
Expand Down
1 change: 0 additions & 1 deletion build/lib/users/hmi/flask/api/v1/confirm_2fa.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from datetime import timedelta

from flask import current_app, request

from src.libs.flask.utils import ResponseAPI, get_bearer_token
from src.libs.redis import rate_limited
from src.users.services import TokenService
Expand Down
1 change: 0 additions & 1 deletion build/lib/users/hmi/flask/api/v1/group.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from datetime import timedelta

from flask import current_app, g, request

from src.libs.flask.querystring import QueryStringFilter
from src.libs.flask.utils import ResponseAPI
from src.libs.hmi import dto_to_dict, list_dto_to_dict, list_models_to_list_dto
Expand Down
1 change: 0 additions & 1 deletion build/lib/users/hmi/flask/api/v1/login.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from datetime import timedelta

from flask import current_app, request

from src.libs.flask.utils import ResponseAPI
from src.libs.redis import rate_limited
from src.users.hmi.flask.emails import LoginEmail
Expand Down
1 change: 0 additions & 1 deletion build/lib/users/hmi/flask/api/v1/logout.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from datetime import timedelta

from flask import current_app, g

from src.libs.flask.utils import ResponseAPI
from src.libs.redis import rate_limited
from src.users.hmi.flask.decorators import login_required
Expand Down
2 changes: 1 addition & 1 deletion build/lib/users/hmi/flask/api/v1/register.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from datetime import timedelta

from email_validator import EmailSyntaxError
from flask import current_app, request

from flask import current_app, request
from src.libs.flask.utils import ResponseAPI
from src.libs.hmi import dto_to_dict
from src.libs.redis import rate_limited
Expand Down
1 change: 0 additions & 1 deletion build/lib/users/hmi/flask/api/v1/right.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from datetime import timedelta

from flask import current_app, g, request

from src.libs.flask.querystring import QueryStringFilter
from src.libs.flask.utils import ResponseAPI
from src.libs.hmi import dto_to_dict, list_dto_to_dict, list_models_to_list_dto
Expand Down
1 change: 0 additions & 1 deletion build/lib/users/hmi/flask/api/v1/role.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from datetime import timedelta

from flask import current_app, g, request

from src.libs.flask.querystring import QueryStringFilter
from src.libs.flask.utils import ResponseAPI
from src.libs.hmi import dto_to_dict, list_dto_to_dict, list_models_to_list_dto
Expand Down
1 change: 0 additions & 1 deletion build/lib/users/hmi/flask/api/v1/roletype.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from datetime import timedelta

from flask import current_app, g, request

from src.libs.flask.querystring import QueryStringFilter
from src.libs.flask.utils import ResponseAPI
from src.libs.hmi import dto_to_dict, list_dto_to_dict, list_models_to_list_dto
Expand Down
1 change: 0 additions & 1 deletion build/lib/users/hmi/flask/api/v1/user.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from datetime import timedelta

from flask import current_app, g, request

from src.libs.flask.utils import ResponseAPI
from src.libs.hmi import dto_to_dict
from src.libs.redis import rate_limited
Expand Down
1 change: 0 additions & 1 deletion build/lib/users/hmi/flask/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from typing import Callable

from flask import current_app, g, request

from src.libs.flask.utils import ResponseAPI, get_bearer_token
from src.libs.iam.config import PermissionError
from src.users.services import UserService
Expand Down
1 change: 0 additions & 1 deletion build/lib/users/hmi/flask/emails/change_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from typing import Tuple

from flask import render_template

from src.base.config import EMAIL_LOGO, LINK_TO_CHANGE_EMAIL
from src.libs.notifications import AbstractBaseEmailContent

Expand Down
1 change: 0 additions & 1 deletion build/lib/users/hmi/flask/emails/change_password.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from typing import Tuple

from flask import render_template

from src.base.config import EMAIL_LOGO, LINK_TO_CHANGE_PASSWORD
from src.libs.notifications import AbstractBaseEmailContent

Expand Down
1 change: 0 additions & 1 deletion build/lib/users/hmi/flask/emails/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from typing import Tuple

from flask import render_template

from src.base.config import EMAIL_LOGO
from src.libs.notifications import AbstractBaseEmailContent

Expand Down
1 change: 0 additions & 1 deletion build/lib/users/hmi/flask/emails/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from typing import Tuple

from flask import render_template

from src.base.config import EMAIL_LOGO
from src.libs.notifications import AbstractBaseEmailContent

Expand Down
Loading

0 comments on commit 356dedc

Please sign in to comment.