Skip to content
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
8 changes: 4 additions & 4 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: v5.0.0
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
Expand All @@ -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 ]
Expand All @@ -35,4 +35,4 @@ repos:
hooks:
- id: docstrfmt
require_serial: true
rev: v1.9.0
rev: v1.11.1
2 changes: 1 addition & 1 deletion prawcore/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading