From 58671567245ea7b1bcb2301557160fab58e9066c Mon Sep 17 00:00:00 2001 From: LilSpazJoekp <15524072+LilSpazJoekp@users.noreply.github.com> Date: Mon, 29 Sep 2025 15:25:26 +0000 Subject: [PATCH] Update pre-commit hooks --- .pre-commit-config.yaml | 8 ++++---- prawcore/auth.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b79ad85..629c137 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-executables-have-shebangs @@ -18,13 +18,13 @@ repos: - id: trailing-whitespace - repo: https://github.com/pappasam/toml-sort - rev: v0.24.2 + rev: v0.24.3 hooks: - id: toml-sort-fix files: ^(.*\.toml)$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.6 + rev: v0.13.2 hooks: - id: ruff args: [ --exit-non-zero-on-fix, --fix ] @@ -35,4 +35,4 @@ repos: hooks: - id: docstrfmt require_serial: true - rev: v1.9.0 + rev: v1.11.1 diff --git a/prawcore/auth.py b/prawcore/auth.py index e78e629..3692a9e 100644 --- a/prawcore/auth.py +++ b/prawcore/auth.py @@ -102,7 +102,7 @@ def authorize_url(self, duration: str, scopes: list[str], state: str, implicit: } url = self._requestor.reddit_url + const.AUTHORIZATION_PATH request = Request("GET", url, params=params) - return cast(str, request.prepare().url) + return cast("str", request.prepare().url) def revoke_token(self, token: str, token_type: str | None = None) -> None: """Ask Reddit to revoke the provided token.