Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#694)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/asottile/yesqa: v1.4.0 → v1.5.0](asottile/yesqa@v1.4.0...v1.5.0)
- [github.com/psf/black: 22.12.0 → 23.3.0](psf/black@22.12.0...23.3.0)
- [github.com/asottile/pyupgrade: v3.3.1 → v3.7.0](asottile/pyupgrade@v3.3.1...v3.7.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jun 21, 2023
1 parent 6e7c752 commit c65036c
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repos:
hooks:
- id: check-merge-conflict
- repo: https://github.com/asottile/yesqa
rev: v1.4.0
rev: v1.5.0
hooks:
- id: yesqa
- repo: https://github.com/pycqa/isort
Expand All @@ -13,7 +13,7 @@ repos:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: '22.12.0'
rev: '23.3.0'
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
Expand Down Expand Up @@ -48,7 +48,7 @@ repos:
- id: detect-private-key
exclude: ^tests/
- repo: https://github.com/asottile/pyupgrade
rev: 'v3.3.1'
rev: 'v3.7.0'
hooks:
- id: pyupgrade
args: ['--py37-plus', '--keep-mock']
Expand Down
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 c65036c

Please sign in to comment.