Skip to content

Commit 4616fb2

Browse files
renovate[bot]ewjoachimpre-commit-ci[bot]
authored
Update pre-commit hook astral-sh/ruff-pre-commit to v0.4.2 (#404)
* 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 <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 13bd119 commit 4616fb2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818
- id: check-added-large-files
1919

2020
- repo: https://github.com/astral-sh/ruff-pre-commit
21-
rev: v0.4.1
21+
rev: v0.4.2
2222
hooks:
2323
- id: ruff
2424
args: [ --fix ]

coverage_comment/github_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, session: httpx.Client):
5656
self.session = session
5757

5858
def __getattr__(self, attr):
59-
return _Callable(self, "/%s" % attr)
59+
return _Callable(self, f"/{attr}")
6060

6161
def _http(
6262
self,
@@ -122,7 +122,7 @@ def __getattr__(self, key):
122122
try:
123123
return self[key]
124124
except KeyError:
125-
raise AttributeError(r"'Dict' object has no attribute '%s'" % key)
125+
raise AttributeError(rf"'Dict' object has no attribute '{key}'")
126126

127127

128128
class ApiError(Exception):

0 commit comments

Comments
 (0)