Skip to content

Commit

Permalink
⬆️ Bump ruff-pre-commit from v0.8.6 to v0.9.1 (#728)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.1](astral-sh/ruff-pre-commit@v0.8.6...v0.9.1)

* [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 Jan 14, 2025
1 parent 5501090 commit 8492348
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.9.1
hooks:
- id: ruff
args:
Expand Down
6 changes: 3 additions & 3 deletions authx/_internal/_signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ def decode(self, token: str) -> tuple[Optional[dict[str, Any]], Optional[str]]:
dict_obj = {"session_id": session_id}
token = serializer.encode(dict_obj)
data, err = serializer.decode(token)
assert (
data is not None and err is None and data["session_id"] == 1
), "Failed to decode or session_id does not match."
assert data is not None and err is None and data["session_id"] == 1, (
"Failed to decode or session_id does not match."
)

0 comments on commit 8492348

Please sign in to comment.