Skip to content

Commit

Permalink
Update pre-commit hook astral-sh/ruff-pre-commit to v0.4.2 (#404)
Browse files Browse the repository at this point in the history
* Update pre-commit hook astral-sh/ruff-pre-commit to v0.4.2

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Joachim Jablon <ewjoachim@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Apr 29, 2024
1 parent 13bd119 commit 4616fb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
- id: check-added-large-files

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.1
rev: v0.4.2
hooks:
- id: ruff
args: [ --fix ]
Expand Down
4 changes: 2 additions & 2 deletions coverage_comment/github_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, session: httpx.Client):
self.session = session

def __getattr__(self, attr):
return _Callable(self, "/%s" % attr)
return _Callable(self, f"/{attr}")

def _http(
self,
Expand Down Expand Up @@ -122,7 +122,7 @@ def __getattr__(self, key):
try:
return self[key]
except KeyError:
raise AttributeError(r"'Dict' object has no attribute '%s'" % key)
raise AttributeError(rf"'Dict' object has no attribute '{key}'")


class ApiError(Exception):
Expand Down

0 comments on commit 4616fb2

Please sign in to comment.