Skip to content

Commit

Permalink
Fixing linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
pwei1018 committed Aug 14, 2024
1 parent d5608d2 commit 5057872
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 34 deletions.
Empty file added auth-api/__init__.py
Empty file.
9 changes: 3 additions & 6 deletions auth-api/src/auth_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,9 @@ def build_cache(app):
cache.clear()
if not app.config.get("TESTING", False):
try:
from auth_api.services.permissions import ( # pylint: disable=import-outside-toplevel
Permissions as PermissionService,
)
from auth_api.services.products import ( # pylint: disable=import-outside-toplevel
Product as ProductService,
)
# pylint: disable=import-outside-toplevel
from auth_api.services.permissions import Permissions as PermissionService
from auth_api.services.products import Product as ProductService

PermissionService.build_all_permission_cache()
ProductService.build_all_products_cache()
Expand Down
5 changes: 2 additions & 3 deletions auth-api/src/auth_api/services/authorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,8 @@ def _is_product_based_auth(product_code):

check_product_based_auth = False
if product_code:
from auth_api.services.products import ( # pylint:disable=cyclic-import, import-outside-toplevel
Product as ProductService,
)
# pylint:disable=cyclic-import, import-outside-toplevel
from auth_api.services.products import Product as ProductService

product_type: str = ProductService.find_product_type_by_code(product_code)
# TODO should we reject if the product code is unknown??
Expand Down
25 changes: 0 additions & 25 deletions auth-api/src/auth_api/version.py

This file was deleted.

0 comments on commit 5057872

Please sign in to comment.