diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b70f3d1a..fefae230 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 ] diff --git a/coverage_comment/github_client.py b/coverage_comment/github_client.py index f9713e7f..92a4d9e6 100644 --- a/coverage_comment/github_client.py +++ b/coverage_comment/github_client.py @@ -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, @@ -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):