Skip to content

Commit

Permalink
apply changes by ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
dontseyit committed Dec 4, 2024
1 parent b2a1d07 commit 577b4a0
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/auth_service/auth_adapter/api/headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from ..core.session_store import Session

__all__ = ["get_bearer_token", "session_to_header", "pass_auth_response"]
__all__ = ["get_bearer_token", "pass_auth_response", "session_to_header"]


def get_bearer_token(*header_values: str | None) -> str | None:
Expand Down
2 changes: 1 addition & 1 deletion src/auth_service/auth_adapter/core/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

from .session_store import Session

__all__ = ["get_user_info", "internal_token_from_session", "get_jwt_config"]
__all__ = ["get_jwt_config", "get_user_info", "internal_token_from_session"]

log = logging.getLogger(__name__)

Expand Down
4 changes: 2 additions & 2 deletions src/auth_service/auth_adapter/deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
from .translators.dao import UserTokenDaoFactory

__all__ = [
"get_user_token_dao",
"SessionStoreDependency",
"SessionDependency",
"SessionStoreDependency",
"get_user_token_dao",
]

SESSION_COOKIE = "session"
Expand Down
4 changes: 2 additions & 2 deletions src/auth_service/deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
from .config import CONFIG, Config

__all__ = [
"Config",
"Depends",
"get_config",
"get_mongodb_dao_factory",
"get_mongo_kafka_dao_factory",
"Config",
"get_mongodb_dao_factory",
]


Expand Down
2 changes: 1 addition & 1 deletion src/auth_service/user_management/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

from auth_service.config import CONFIG

__all__ = ["UserAuthContext", "StewardAuthContext"]
__all__ = ["StewardAuthContext", "UserAuthContext"]


auth_provider = GHGAAuthContextProvider(config=CONFIG, context_class=AuthContext)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
"create_controlled_access_filter",
"create_data_steward_claim",
"dataset_id_for_download_access",
"is_valid_claim",
"is_internal_claim",
"is_data_steward_claim",
"get_dataset_for_value",
"has_download_access_for_dataset",
"is_data_steward_claim",
"is_internal_claim",
"is_valid_claim",
]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from ..models.claims import VisaType
from .claims import is_data_steward_claim, is_valid_claim

__all__ = ["user_exists", "user_with_iva_exists", "is_data_steward"]
__all__ = ["is_data_steward", "user_exists", "user_with_iva_exists"]


async def user_exists(user_id: str, *, user_dao: UserDao) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion src/auth_service/user_management/claims_repository/deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from .ports.dao import ClaimDao
from .translators.dao import ClaimDaoConfig, ClaimDaoFactory

__all__ = ["get_claim_dao", "ClaimDao"]
__all__ = ["ClaimDao", "get_claim_dao"]


def get_claim_dao_factory(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from . import BaseDto

__all__ = ["UserWithIVA", "IvaType"]
__all__ = ["IvaType", "UserWithIVA"]


class UserWithIVA(BaseDto):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from ..models.claims import ClaimFullCreation as ClaimCreationDto
from ..ports.dao import ClaimDao, ClaimDaoFactoryPort

__all__ = ["ClaimDaoFactory", "ClaimDaoConfig"]
__all__ = ["ClaimDaoConfig", "ClaimDaoFactory"]


class ClaimDaoConfig(BaseSettings):
Expand Down
2 changes: 1 addition & 1 deletion src/auth_service/user_management/user_registry/deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
)
from .translators.event_pub import EventPubTranslator, EventPubTranslatorConfig

__all__ = ["get_user_dao", "IvaDao", "UserDao", "get_user_registry"]
__all__ = ["IvaDao", "UserDao", "get_user_dao", "get_user_registry"]


def get_user_dao_factory(
Expand Down
14 changes: 7 additions & 7 deletions src/auth_service/user_management/user_registry/models/ivas.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@
from . import BaseDto

__all__ = [
"IvaType",
"IvaState",
"Iva",
"IvaAndUserData",
"IvaBasicData",
"IvaWithState",
"IvaVerificationCode",
"IvaId",
"IvaData",
"IvaFullData",
"IvaAndUserData",
"Iva",
"IvaId",
"IvaState",
"IvaType",
"IvaVerificationCode",
"IvaWithState",
]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

from . import BaseDto

__all__ = ["User", "UserData", "UserStatus", "StatusChange"]
__all__ = ["StatusChange", "User", "UserData", "UserStatus"]


class UserStatus(str, Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from ..models.users import User as UserDto
from ..ports.dao import UserDaoPublisherFactoryPort

__all__ = ["UserDaoPublisherFactory", "UserDaoConfig"]
__all__ = ["UserDaoConfig", "UserDaoPublisherFactory"]


class UserDaoConfig(BaseSettings):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from ..models.ivas import Iva
from ..ports.event_pub import EventPublisherPort

__all__ = ["EventPubTranslatorConfig", "EventPubTranslator"]
__all__ = ["EventPubTranslator", "EventPubTranslatorConfig"]


class EventPubTranslatorConfig(BaseSettings):
Expand Down

0 comments on commit 577b4a0

Please sign in to comment.