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 May 8, 2023
1 parent af2ecf5 commit 7396402
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

initial = True

dependencies = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("token_blacklist", "0001_initial"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def reverse_populate_jti_hex(apps, schema_editor): # pragma: no cover


class Migration(migrations.Migration):

dependencies = [
("token_blacklist", "0002_outstandingtoken_jti_hex"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("token_blacklist", "0003_auto_20171017_2007"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("token_blacklist", "0004_auto_20171017_2013"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("token_blacklist", "0005_remove_outstandingtoken_jti"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("token_blacklist", "0006_auto_20171017_2113"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class Migration(migrations.Migration):

dependencies = [
("token_blacklist", "0007_auto_20171017_2214"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class Migration(migrations.Migration):

dependencies = [
("token_blacklist", "0008_migrate_to_bigautofield"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("token_blacklist", "0011_linearizes_history"),
Expand Down
1 change: 0 additions & 1 deletion rest_framework_simplejwt/tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def verify(self) -> None:
raise TokenError(_("Token has no id"))

if api_settings.TOKEN_TYPE_CLAIM is not None:

self.verify_token_type()

def verify_token_type(self) -> None:
Expand Down
2 changes: 0 additions & 2 deletions tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ def test_decode_with_expiry(self):
self.payload["exp"] = aware_utcnow() - timedelta(seconds=1)
for backend in self.backends:
with self.subTest("Test decode with expiry for f{backend.algorithm}"):

expired_token = jwt.encode(
self.payload, backend.signing_key, algorithm=backend.algorithm
)
Expand Down Expand Up @@ -228,7 +227,6 @@ def test_decode_success(self):
self.payload["foo"] = "baz"
for backend in self.backends:
with self.subTest("Test decode success for f{backend.algorithm}"):

token = jwt.encode(
self.payload, backend.signing_key, algorithm=backend.algorithm
)
Expand Down

0 comments on commit 7396402

Please sign in to comment.