Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #694

Merged
merged 2 commits into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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