Skip to content

Commit 9853397

Browse files
committed
Update pre-commit hooks and run pre_push.py
1 parent 9edc0bf commit 9853397

4 files changed

Lines changed: 6 additions & 22 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ repos:
2222
- id: ruff
2323
args: [ --exit-non-zero-on-fix, --fix ]
2424
files: ^(praw/.*.py)$
25-
rev: v0.13.3
25+
rev: v0.15.0
2626

2727
- repo: https://github.com/LilSpazJoekp/docstrfmt
2828
hooks:
2929
- id: docstrfmt
30-
rev: v1.11.1
30+
rev: v2.0.2
3131

3232
- repo: https://github.com/MarcoGorelli/auto-walrus
3333
hooks:
3434
- id: auto-walrus
35-
rev: 0.3.4
35+
rev: 0.4.1
3636

3737
- repo: https://github.com/pappasam/toml-sort
3838
hooks:

docs/getting_started/configuration.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ certificate without an exception from requests_, first export the certificate as
5555
import praw
5656
from requests import Session
5757
58-
5958
session = Session()
6059
session.verify = "/path/to/certfile.pem"
6160
reddit = praw.Reddit(

docs/package_info/glossary.rst

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,11 @@ Glossary
1414

1515
Here is a list of the six different types of objects returned from Reddit:
1616

17-
.. _fullname_t1:
18-
1917
- ``t1`` These objects represent :class:`.Comment`\ s.
20-
21-
.. _fullname_t2:
22-
2318
- ``t2`` These objects represent :class:`.Redditor`\ s.
24-
25-
.. _fullname_t3:
26-
2719
- ``t3`` These objects represent :class:`.Submission`\ s.
28-
29-
.. _fullname_t4:
30-
3120
- ``t4`` These objects represent :class:`.Message`\ s.
32-
33-
.. _fullname_t5:
34-
3521
- ``t5`` These objects represent :class:`.Subreddit`\ s.
36-
37-
.. _fullname_t6:
38-
3922
- ``t6`` These objects represent :class:`.Trophy`\ s.
4023

4124
.. _websocket:

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ test = [
7777

7878
[tool.docstrfmt]
7979
extend_exclude = ['./docs/examples/']
80+
section-adornments = "|=-~+.'\"`^_*:#"
8081

8182
[tool.hatch.version]
8283
path = "praw/const.py"
@@ -100,7 +101,8 @@ ignore = [
100101
"PLR0913", # Too many arguments in function definition
101102
"PLR0915", # Too many statements
102103
"S101", # use of assert
103-
"SLF001" # Private member accessed
104+
"SLF001", # Private member accessed
105+
"RUF067" # `__init__` module should only contain docstrings and re-exports
104106
]
105107
select = [
106108
"A", # flake8-builtins

0 commit comments

Comments
 (0)