Skip to content

Commit

Permalink
Merge pull request #2002 from praw-dev/update/pre-commit-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
LilSpazJoekp authored Dec 18, 2023
2 parents ec3b6ca + 615cbb5 commit 3370c70
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ repos:
files: ^(.*\.toml)$

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.1.8
hooks:
- id: ruff
args: [ --exit-non-zero-on-fix, --fix ]
Expand All @@ -51,9 +51,9 @@ repos:
- repo: https://github.com/psf/black
hooks:
- id: black
rev: 23.11.0
rev: 23.12.0

- repo: https://github.com/LilSpazJoekp/docstrfmt
hooks:
- id: docstrfmt
rev: v1.5.1
rev: v1.6.1
8 changes: 0 additions & 8 deletions praw/models/reddit/subreddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1891,7 +1891,6 @@ def upload(self, *, image_path: str, name: str) -> dict[str, str]:
``img_src``.
:raises: ``prawcore.TooLarge`` if the overall request body is too large.
:raises: :class:`.RedditAPIException` if there are other issues with the
uploaded image. Unfortunately the exception info might not be very specific,
so try through the website with the same image to see what the problem
Expand All @@ -1914,7 +1913,6 @@ def upload_banner(self, image_path: str):
:param image_path: A path to a jpeg or png image.
:raises: ``prawcore.TooLarge`` if the overall request body is too large.
:raises: :class:`.RedditAPIException` if there are other issues with the
uploaded image. Unfortunately the exception info might not be very specific,
so try through the website with the same image to see what the problem
Expand Down Expand Up @@ -1947,7 +1945,6 @@ def upload_banner_additional_image(
``"left"``).
:raises: ``prawcore.TooLarge`` if the overall request body is too large.
:raises: :class:`.RedditAPIException` if there are other issues with the
uploaded image. Unfortunately the exception info might not be very specific,
so try through the website with the same image to see what the problem
Expand Down Expand Up @@ -1985,7 +1982,6 @@ def upload_banner_hover_image(self, image_path: str):
Fails if the :class:`.Subreddit` does not have an additional image defined.
:raises: ``prawcore.TooLarge`` if the overall request body is too large.
:raises: :class:`.RedditAPIException` if there are other issues with the
uploaded image. Unfortunately the exception info might not be very specific,
so try through the website with the same image to see what the problem
Expand Down Expand Up @@ -2014,7 +2010,6 @@ def upload_header(self, image_path: str) -> dict[str, str]:
``img_src``.
:raises: ``prawcore.TooLarge`` if the overall request body is too large.
:raises: :class:`.RedditAPIException` if there are other issues with the
uploaded image. Unfortunately the exception info might not be very specific,
so try through the website with the same image to see what the problem
Expand Down Expand Up @@ -2044,7 +2039,6 @@ def upload_mobile_banner(self, image_path: str):
Fails if the :class:`.Subreddit` does not have an additional image defined.
:raises: ``prawcore.TooLarge`` if the overall request body is too large.
:raises: :class:`.RedditAPIException` if there are other issues with the
uploaded image. Unfortunately the exception info might not be very specific,
so try through the website with the same image to see what the problem
Expand All @@ -2066,7 +2060,6 @@ def upload_mobile_header(self, image_path: str) -> dict[str, str]:
``img_src``.
:raises: ``prawcore.TooLarge`` if the overall request body is too large.
:raises: :class:`.RedditAPIException` if there are other issues with the
uploaded image. Unfortunately the exception info might not be very specific,
so try through the website with the same image to see what the problem
Expand All @@ -2090,7 +2083,6 @@ def upload_mobile_icon(self, image_path: str) -> dict[str, str]:
``img_src``.
:raises: ``prawcore.TooLarge`` if the overall request body is too large.
:raises: :class:`.RedditAPIException` if there are other issues with the
uploaded image. Unfortunately the exception info might not be very specific,
so try through the website with the same image to see what the problem
Expand Down
1 change: 0 additions & 1 deletion praw/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ def pin(
:returns: The pinned submission.
:raises: ``prawcore.BadRequest`` when pinning a removed or deleted submission.
:raises: ``prawcore.Forbidden`` when pinning a submission the authenticated user
is not the author of.
Expand Down

0 comments on commit 3370c70

Please sign in to comment.