Skip to content

Commit 367c1f3

Browse files
LilSpazJoekpgithub-actions[bot]
authored andcommitted
Update pre-commit hooks
1 parent e8e8f6a commit 367c1f3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v5.0.0
3+
rev: v6.0.0
44
hooks:
55
- id: check-added-large-files
66
- id: check-executables-have-shebangs
@@ -24,7 +24,7 @@ repos:
2424
files: ^(.*\.toml)$
2525

2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: v0.9.6
27+
rev: v0.12.10
2828
hooks:
2929
- id: ruff
3030
args: [ --exit-non-zero-on-fix, --fix ]
@@ -35,4 +35,4 @@ repos:
3535
hooks:
3636
- id: docstrfmt
3737
require_serial: true
38-
rev: v1.9.0
38+
rev: v1.11.0

prawcore/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def authorize_url(self, duration: str, scopes: list[str], state: str, implicit:
102102
}
103103
url = self._requestor.reddit_url + const.AUTHORIZATION_PATH
104104
request = Request("GET", url, params=params)
105-
return cast(str, request.prepare().url)
105+
return cast("str", request.prepare().url)
106106

107107
def revoke_token(self, token: str, token_type: str | None = None) -> None:
108108
"""Ask Reddit to revoke the provided token.

0 commit comments

Comments
 (0)