diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d8134f98..670a1920 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: diff --git a/authx/_internal/_signature.py b/authx/_internal/_signature.py index 0cb944e6..c1e63482 100644 --- a/authx/_internal/_signature.py +++ b/authx/_internal/_signature.py @@ -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." + )