Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 30, 2024
1 parent c356e43 commit 144b9ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions knox/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from rest_framework.authentication import (
BaseAuthentication, get_authorization_header,
)

from knox.crypto import hash_token
from knox.models import (
get_refresh_family_model, get_refresh_token_model, get_token_model,
Expand Down
1 change: 1 addition & 0 deletions knox/settings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from datetime import timedelta

from django.conf import settings
from django.test.signals import setting_changed
from rest_framework.settings import APISettings, api_settings
Expand Down
2 changes: 1 addition & 1 deletion tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from knox.models import AuthRefreshToken, AuthToken, RefreshFamily
from knox.serializers import UserSerializer
from knox.settings import CONSTANTS, knox_settings
from knox.signals import token_expired,refresh_token_expired
from knox.signals import refresh_token_expired, token_expired

User = get_user_model()
root_url = reverse('api-root')
Expand Down

0 comments on commit 144b9ac

Please sign in to comment.