Skip to content

Commit

Permalink
Sort imports isort for flake8 lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkwelltwd committed Aug 28, 2020
1 parent c93d677 commit df36c10
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 15 deletions.
8 changes: 2 additions & 6 deletions oauth2_provider/oauth2_validators.py
Expand Up @@ -27,12 +27,8 @@

from .exceptions import FatalClientError
from .models import (
AbstractApplication,
get_access_token_model,
get_id_token_model,
get_application_model,
get_grant_model,
get_refresh_token_model,
AbstractApplication, get_access_token_model, get_application_model,
get_grant_model, get_id_token_model, get_refresh_token_model
)
from .scopes import get_scopes_backend
from .settings import oauth2_settings
Expand Down
2 changes: 1 addition & 1 deletion oauth2_provider/urls.py
Expand Up @@ -29,7 +29,7 @@

oidc_urlpatterns = [
re_path(r"^\.well-known/openid-configuration/$", views.ConnectDiscoveryInfoView.as_view(),
name="oidc-connect-discovery-info"),
name="oidc-connect-discovery-info"),
re_path(r"^jwks/$", views.JwksInfoView.as_view(), name="jwks-info"),
re_path(r"^userinfo/$", views.UserInfoView.as_view(), name="user-info")
]
Expand Down
6 changes: 2 additions & 4 deletions tests/test_authorization_code.py
Expand Up @@ -13,10 +13,8 @@
from oauthlib.oauth2.rfc6749 import errors as oauthlib_errors

from oauth2_provider.models import (
get_access_token_model,
get_application_model,
get_grant_model,
get_refresh_token_model,
get_access_token_model, get_application_model,
get_grant_model, get_refresh_token_model
)
from oauth2_provider.settings import oauth2_settings
from oauth2_provider.views import ProtectedResourceView
Expand Down
4 changes: 1 addition & 3 deletions tests/test_implicit.py
@@ -1,11 +1,9 @@
from urllib.parse import parse_qs, urlparse

import json
from urllib.parse import parse_qs, urlparse

from django.contrib.auth import get_user_model
from django.test import RequestFactory, TestCase
from django.urls import reverse

from jwcrypto import jwk, jwt

from oauth2_provider.models import get_application_model
Expand Down
2 changes: 1 addition & 1 deletion tests/urls.py
@@ -1,5 +1,5 @@
from django.urls import include, re_path
from django.contrib import admin
from django.urls import include, re_path


admin.autodiscover()
Expand Down

0 comments on commit df36c10

Please sign in to comment.