Skip to content

Commit c457e0a

Browse files
authored
Merge pull request #332 from praw-dev/update/pre-commit-hooks
Update pre-commit hooks
2 parents d16b256 + b84e31c commit c457e0a

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ repos:
33
- id: docstrfmt
44
require_serial: true
55
repo: https://github.com/LilSpazJoekp/docstrfmt
6-
rev: 8688ba6420d7b5ca95a8ba0edf8a9953babdc3da # frozen: v2.1.1
6+
rev: a05381030e526dc863e2006d34824271d7681d08 # frozen: v2.2.0
77

88
- hooks:
99
- id: codesorter
1010
require_serial: true
1111
repo: https://github.com/praw-dev/CodeSorter
12-
rev: 8aa6144b41e0f789124b2ca377d246ffd1fbb317 # frozen: v0.2.7
12+
rev: 03a8cecfa6ae82183f9e152d1bbb16ea6a6c1d11 # frozen: v0.2.8
1313

1414
- hooks:
1515
- id: auto-walrus
@@ -21,7 +21,7 @@ repos:
2121
id: ruff
2222
- id: ruff-format
2323
repo: https://github.com/astral-sh/ruff-pre-commit
24-
rev: 3b3f7c3f57fe9925356faf5fe6230835138be230 # frozen: v0.15.17
24+
rev: 77039ccbba72c8aede339c5f8ae29b42aced0a2e # frozen: v0.15.18
2525

2626
- hooks:
2727
- files: ^(.*\.toml)$

prawcore/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def _auth(self) -> tuple[str, str]:
2929

3030
@property
3131
def requestor(self) -> Requestor:
32-
"""Return the :class:`.Requestor` used to issue HTTP requests."""
32+
"""The :class:`.Requestor` used to issue HTTP requests."""
3333
return self._requestor
3434

3535
def __init__(
@@ -135,7 +135,7 @@ class BaseAuthorizer:
135135

136136
@property
137137
def authenticator(self) -> BaseAuthenticator:
138-
"""Return the :class:`.BaseAuthenticator` used to authenticate requests."""
138+
"""The :class:`.BaseAuthenticator` used to authenticate requests."""
139139
return self._authenticator
140140

141141
def __init__(self, *, authenticator: BaseAuthenticator) -> None:

prawcore/sessions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,17 +154,17 @@ def _log_request(
154154

155155
@property
156156
def authorizer(self) -> BaseAuthorizer:
157-
"""Return the :class:`.BaseAuthorizer` used to authorize requests."""
157+
"""The :class:`.BaseAuthorizer` used to authorize requests."""
158158
return self._authorizer
159159

160160
@property
161161
def rate_limiter(self) -> RateLimiter:
162-
"""Return the :class:`.RateLimiter` that throttles requests."""
162+
"""The :class:`.RateLimiter` that throttles requests."""
163163
return self._rate_limiter
164164

165165
@property
166166
def requestor(self) -> Requestor:
167-
"""Return the :class:`.Requestor` used to issue HTTP requests."""
167+
"""The :class:`.Requestor` used to issue HTTP requests."""
168168
return self._authorizer.authenticator.requestor
169169

170170
def __enter__(self) -> Self:

0 commit comments

Comments
 (0)