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 #100

Closed
wants to merge 2 commits into from
Closed
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
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: end-of-file-fixer
- id: check-docstring-first
Expand All @@ -11,30 +11,30 @@ repos:
args: ['--django']
- id: requirements-txt-fixer
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.1.0
hooks:
- id: flake8
additional_dependencies: [flake8-typing-imports==1.14.0]
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v2.0.2
- repo: https://github.com/hhatto/autopep8
rev: v2.3.0
hooks:
- id: autopep8
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.16.0
hooks:
- id: pyupgrade
args: [--py36-plus]
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.13.0
hooks:
- id: reorder-python-imports
args: [--py3-plus]
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.4.0
rev: v3.1.0
hooks:
- id: add-trailing-comma
args: [--py36-plus]
Expand Down
8 changes: 5 additions & 3 deletions examples/03-sign-key/sign-key.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@

# verify your jwt
print(
VALID_SIGNATURE
if new_jwt.split(".")[2] == jwt.split(".")[2]
else INVALID_SIGNATURE,
(
VALID_SIGNATURE
if new_jwt.split(".")[2] == jwt.split(".")[2]
else INVALID_SIGNATURE
),
)
1 change: 1 addition & 0 deletions myjwt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""autogenerated"""

__version__ = "1.6.1"
__commit__ = "34a82dc12b295caaec3b5803ff553713c44765e0"
8 changes: 5 additions & 3 deletions myjwt/myjwt_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,11 @@ def myjwt_cli(jwt, **kwargs):
sys.exit(CHECK_DOCS)
new_jwt = signature(jwt_json, kwargs["verify"])
click.echo(
VALID_SIGNATURE
if new_jwt.split(".")[2] == jwt.split(".")[2]
else INVALID_SIGNATURE,
(
VALID_SIGNATURE
if new_jwt.split(".")[2] == jwt.split(".")[2]
else INVALID_SIGNATURE
),
)
if kwargs["crack"]:
jwt_json = jwt_to_json(jwt)
Expand Down
8 changes: 5 additions & 3 deletions myjwt/user_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,11 @@ def user_verify_key(jwt_json: Dict, key: str) -> None:
click.echo(CHECK_DOCS)
new_jwt = signature(jwt_json, key)
click.echo(
VALID_SIGNATURE
if new_jwt.split(".")[2] == jwt_json[SIGNATURE]
else INVALID_SIGNATURE,
(
VALID_SIGNATURE
if new_jwt.split(".")[2] == jwt_json[SIGNATURE]
else INVALID_SIGNATURE
),
)


Expand Down
Loading