Skip to content

Commit

Permalink
Update pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
LilSpazJoekp committed Apr 8, 2024
1 parent 7bc8c10 commit fd19bf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Expand Up @@ -18,7 +18,7 @@ repos:
types: [ python ]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
Expand All @@ -42,7 +42,7 @@ repos:
files: ^(.*\.toml)$

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.14
rev: v0.3.5
hooks:
- id: ruff
args: [ --exit-non-zero-on-fix, --fix ]
Expand All @@ -51,7 +51,7 @@ repos:
- repo: https://github.com/psf/black
hooks:
- id: black
rev: 24.1.1
rev: 24.3.0

- repo: https://github.com/LilSpazJoekp/docstrfmt
hooks:
Expand Down
4 changes: 1 addition & 3 deletions asyncpraw/models/reddit/base.py
Expand Up @@ -35,9 +35,7 @@ def __eq__(self, other: Any | str) -> bool:
def __getattr__(self, attribute: str) -> Any:
"""Return the value of ``attribute``."""
if not attribute.startswith("_") and not self._fetched:
msg = "{0!r} object has no attribute {1!r}. {0!r} object has not been fetched, did you forget to execute '.load()'?".format(
self.__class__.__name__, attribute
)
msg = f"{self.__class__.__name__!r} object has no attribute {attribute!r}. {self.__class__.__name__!r} object has not been fetched, did you forget to execute '.load()'?"
raise AttributeError(msg)
msg = f"{self.__class__.__name__!r} object has no attribute {attribute!r}"
raise AttributeError(msg)
Expand Down

0 comments on commit fd19bf5

Please sign in to comment.