Skip to content

Commit 3062686

Browse files
LilSpazJoekpgithub-actions[bot]
authored andcommitted
Update pre-commit hooks
1 parent 9589fa5 commit 3062686

File tree

4 files changed

+70
-48
lines changed

4 files changed

+70
-48
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
files: ^(.*\.toml)$
2525

2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: v0.13.3
27+
rev: v0.14.6
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.11.1
38+
rev: v2.0.0

AUTHORS.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
Maintainers
2-
===========
1+
#############
2+
Maintainers
3+
#############
34

45
- Joel Payne <lilspazjoekp@gmail.com> `@LilSpazJoekp <https://github.com/LilSpazJoekp>`_
56

6-
Contributors
7-
============
7+
##############
8+
Contributors
9+
##############
810

911
- nmtake `@nmtake <https://github.com/nmtake>`_
1012
- elnuno `@elnuno <https://github.com/elnuno>`_

CHANGES.rst

Lines changed: 48 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
Change Log
2-
==========
1+
############
2+
Change Log
3+
############
34

45
asyncprawcore follows `semantic versioning <https://semver.org/>`_.
56

6-
Unreleased
7-
----------
7+
************
8+
Unreleased
9+
************
810

911
**Changed**
1012

@@ -13,22 +15,25 @@ Unreleased
1315
- Pass ``files`` to ``aiohttp.ClientSession.request()`` in ``Requestor.request()``
1416
correctly again.
1517

16-
3.0.2 (2025/08/06)
17-
------------------
18+
********************
19+
3.0.2 (2025/08/06)
20+
********************
1821

1922
**Changed**
2023

2124
- Improved type hinting.
2225

23-
3.0.1 (2025/08/02)
24-
------------------
26+
********************
27+
3.0.1 (2025/08/02)
28+
********************
2529

2630
**Fixed**
2731

2832
- Increase half-second delay introduced in ``3.0.0`` to a full second delay.
2933

30-
3.0.0 (2025/08/02)
31-
------------------
34+
********************
35+
3.0.0 (2025/08/02)
36+
********************
3237

3338
**Changed**
3439

@@ -47,8 +52,9 @@ Unreleased
4752

4853
- Remove :class:`RateLimiter` attribute ``reset_timestamp``.
4954

50-
2.4.0 (2023/11/27)
51-
------------------
55+
********************
56+
2.4.0 (2023/11/27)
57+
********************
5258

5359
**Changed**
5460

@@ -57,8 +63,9 @@ Unreleased
5763
- Updated rate limit algorithm to better handle Reddit's new rate limits.
5864
- Drop support for Python 3.7, which was end-of-life on 2023-06-27.
5965

60-
2.3.0 (2021/07/27)
61-
------------------
66+
********************
67+
2.3.0 (2021/07/27)
68+
********************
6269

6370
**Added**
6471

@@ -69,15 +76,17 @@ Unreleased
6976
scope of access requests.
7077
- Retry 408 "Request Timeout" HTTP responses.
7178

72-
2.2.1 (2021/07/06)
73-
------------------
79+
********************
80+
2.2.1 (2021/07/06)
81+
********************
7482

7583
**Changed**
7684

7785
- Cast non-string objects to string when preprocessing ``data`` and ``params``.
7886

79-
2.2.0 (2021/06/15)
80-
------------------
87+
********************
88+
2.2.0 (2021/06/15)
89+
********************
8190

8291
**Added**
8392

@@ -88,8 +97,9 @@ Unreleased
8897
- The expected HTTP response status code for a request made with the proper credentials
8998
to api/v1/revoke_token has been changed from 204 to 200.
9099

91-
2.1.0 (2021/06/15)
92-
------------------
100+
********************
101+
2.1.0 (2021/06/15)
102+
********************
93103

94104
**Added**
95105

@@ -102,8 +112,9 @@ Unreleased
102112

103113
- Fix ``RuntimeWarning`` when executing pre/post refresh token callbacks.
104114

105-
2.0.0 (2021-02-23)
106-
------------------
115+
********************
116+
2.0.0 (2021-02-23)
117+
********************
107118

108119
**Added**
109120

@@ -119,15 +130,17 @@ Unreleased
119130
- The ``refresh_token`` argument to :class:`Authorizer` must now be passed by keyword,
120131
and cannot be passed as a positional argument.
121132

122-
1.5.1 (2021-01-25)
123-
------------------
133+
********************
134+
1.5.1 (2021-01-25)
135+
********************
124136

125137
**Changed**
126138

127139
- Improved preprocessing for ``data`` and ``params`` in ``Session.request()``.
128140

129-
1.5.0 (2020-09-28)
130-
------------------
141+
********************
142+
1.5.0 (2020-09-28)
143+
********************
131144

132145
**Added**
133146

@@ -153,8 +166,9 @@ Unreleased
153166
``asyncprawcore.Session.request()`` are now casted to a string as
154167
``aiohttp.ClientSession.request()`` does not accept boolean values in ``params``.
155168

156-
1.4.0.post2 (2020-07-12)
157-
------------------------
169+
**************************
170+
1.4.0.post2 (2020-07-12)
171+
**************************
158172

159173
**Fixed**
160174

@@ -163,16 +177,18 @@ Unreleased
163177
- Fixed ``SpecialException`` not able to get ``response.json()`` since it is a
164178
coroutine.
165179

166-
1.4.0.post1 (2020-07-03)
167-
------------------------
180+
**************************
181+
1.4.0.post1 (2020-07-03)
182+
**************************
168183

169184
**Fixed**
170185

171186
- Documentation errors.
172187
- ``authorize_url`` will correctly return a ``str`` instead of ``yarl.URL()``.
173188

174-
1.4.0 (2020-06-20)
175-
------------------
189+
********************
190+
1.4.0 (2020-06-20)
191+
********************
176192

177193
- Converted from ``requests`` to ``aiohttp`` for asynchronous operation.
178194
- Updated upto version 1.4.0 of prawcore.

README.rst

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.. _main_page:
22

3-
asyncprawcore
4-
=============
3+
###############
4+
asyncprawcore
5+
###############
56

67
.. image:: https://img.shields.io/pypi/v/asyncprawcore.svg
78
:alt: Latest asyncprawcore Version
@@ -33,17 +34,19 @@ asyncprawcore
3334

3435
asyncprawcore is a low-level communication layer used by Async PRAW 7+.
3536

36-
Installation
37-
------------
37+
**************
38+
Installation
39+
**************
3840

3941
Install asyncprawcore using ``pip`` via:
4042

4143
.. code-block:: console
4244
4345
pip install asyncprawcore
4446
45-
Execution Example
46-
-----------------
47+
*******************
48+
Execution Example
49+
*******************
4750

4851
The following example demonstrates how to use asyncprawcore to obtain the list of
4952
trophies for a given user using the script-app type. This example assumes you have the
@@ -83,8 +86,9 @@ Save the above as ``trophies.py`` and then execute via:
8386
Additional examples can be found at:
8487
https://github.com/praw-dev/asyncprawcore/tree/main/examples
8588

86-
Depending on asyncprawcore
87-
--------------------------
89+
****************************
90+
Depending on asyncprawcore
91+
****************************
8892

8993
asyncprawcore follows `semantic versioning <https://semver.org/>`_ with the exception
9094
that deprecations will not be preceded by a minor release. In essence, expect only major
@@ -95,14 +99,14 @@ version of asyncprawcore your package requires, but to also limit the major vers
9599
Below are two examples of how you may want to specify your asyncprawcore dependency:
96100

97101
setup.py
98-
~~~~~~~~
102+
========
99103

100104
.. code-block:: python
101105
102106
setup(..., install_requires=["asyncprawcore >=0.1, <1"], ...)
103107
104108
requirements.txt
105-
~~~~~~~~~~~~~~~~
109+
================
106110

107111
.. code-block:: text
108112

0 commit comments

Comments
 (0)