Skip to content

Commit 23781f6

Browse files
authored
Merge pull request #238 from praw-dev/update/pre-commit-hooks
Update pre-commit hooks
2 parents e8e8f6a + 5867156 commit 23781f6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 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
@@ -18,13 +18,13 @@ repos:
1818
- id: trailing-whitespace
1919

2020
- repo: https://github.com/pappasam/toml-sort
21-
rev: v0.24.2
21+
rev: v0.24.3
2222
hooks:
2323
- id: toml-sort-fix
2424
files: ^(.*\.toml)$
2525

2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: v0.9.6
27+
rev: v0.13.2
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.1

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)