Skip to content

Commit f89acaf

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6afe51e commit f89acaf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+44
-0
lines changed

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import oauth2_provider
1818

19+
1920
# If extensions (or modules to document with autodoc) are in another directory,
2021
# add these directories to sys.path here. If the directory is relative to the
2122
# documentation root, use os.path.abspath to make it absolute, like shown here.

docs/rfc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from docutils import nodes
66

7+
78
base_url = "https://rfc-editor.org/rfc/rfc6749.html"
89

910

oauth2_provider/admin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
get_refresh_token_model,
1515
)
1616

17+
1718
has_email = hasattr(get_user_model(), "email")
1819

1920

oauth2_provider/backends.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from .oauth2_backends import get_oauthlib_core
55

6+
67
UserModel = get_user_model()
78
OAuthLibCore = get_oauthlib_core()
89

oauth2_provider/contrib/rest_framework/permissions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from ...settings import oauth2_settings
88
from .authentication import OAuth2Authentication
99

10+
1011
log = logging.getLogger("oauth2_provider")
1112

1213

oauth2_provider/management/commands/createapplication.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from oauth2_provider.models import get_application_model
55

6+
67
Application = get_application_model()
78

89

oauth2_provider/middleware.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from oauth2_provider.models import get_access_token_model
88

9+
910
log = logging.getLogger(__name__)
1011

1112

oauth2_provider/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from .utils import jwk_from_pem
2424
from .validators import AllowedURIValidator
2525

26+
2627
logger = logging.getLogger(__name__)
2728

2829

oauth2_provider/oauth2_validators.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
from .settings import oauth2_settings
4141
from .utils import get_timezone
4242

43+
4344
log = logging.getLogger("oauth2_provider")
4445

4546
GRANT_TYPE_MAPPING = {

oauth2_provider/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from django.utils.module_loading import import_string
2525
from oauthlib.common import Request
2626

27+
2728
USER_SETTINGS = getattr(settings, "OAUTH2_PROVIDER", None)
2829

2930
APPLICATION_MODEL = getattr(settings, "OAUTH2_PROVIDER_APPLICATION_MODEL", "oauth2_provider.Application")

0 commit comments

Comments
 (0)