Skip to content

Commit

Permalink
__all__ are moved to the top according to the PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
parfeniukink committed Jan 28, 2024
1 parent 1154b95 commit be1555c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 20 deletions.
7 changes: 3 additions & 4 deletions fastapi_sso/infrastructure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
that could be used across the project.
"""


from . import factories
from .openid import DiscoveryDocument, OpenID, ReusedOauthClientWarning, SSOBase, SSOLoginError, UnsetStateWarning

__all__ = (
"factories",
"OpenID",
Expand All @@ -15,3 +11,6 @@
"ReusedOauthClientWarning",
"UnsetStateWarning",
)

from . import factories
from .openid import DiscoveryDocument, OpenID, ReusedOauthClientWarning, SSOBase, SSOLoginError, UnsetStateWarning
4 changes: 2 additions & 2 deletions fastapi_sso/infrastructure/factories/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""This pacakge includes all the shared SSO factories."""

from .provider import create_provider

__all__ = ("create_provider",)

from .provider import create_provider
22 changes: 11 additions & 11 deletions fastapi_sso/sso/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@
All of them must inherit from SSOBase class.
"""

from .facebook import FacebookSSO
from .fitbit import FitbitSSO
from .github import GithubSSO
from .gitlab import GitlabSSO
from .google import GoogleSSO
from .kakao import KakaoSSO
from .microsoft import MicrosoftSSO
from .naver import NaverSSO
from .notion import NotionSSO
from .spotify import SpotifySSO

__all__ = (
"FacebookSSO",
"FitbitSSO",
Expand All @@ -25,3 +14,14 @@
"NotionSSO",
"SpotifySSO",
)

from .facebook import FacebookSSO
from .fitbit import FitbitSSO
from .github import GithubSSO
from .gitlab import GitlabSSO
from .google import GoogleSSO
from .kakao import KakaoSSO
from .microsoft import MicrosoftSSO
from .naver import NaverSSO
from .notion import NotionSSO
from .spotify import SpotifySSO
3 changes: 0 additions & 3 deletions fastapi_sso/sso/fitbit.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
"""Fitbit OAuth Login Helper."""


__all__ = ("FitbitSSO",)


from typing import Optional

import httpx
Expand Down

0 comments on commit be1555c

Please sign in to comment.