From 52aaaf2b911da5d0af6debc6dfb15045a49ad09b Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Thu, 16 Nov 2023 17:18:11 +0100 Subject: [PATCH] Update of Ruff configuration --- pyproject.toml | 3 ++- src/apify_client/_errors.py | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 220eae42..5eb1132e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,9 +75,10 @@ ignore = [ "FIX", # flake8-fixme "PGH003", # Use specific rule codes when ignoring type issues "PLR0913", # Too many arguments in function definition - "PTH123", # `open()` should be replaced by `Path.open()` + "PTH", # flake8-use-pathlib "S102", # Use of `exec` detected "S105", # Possible hardcoded password assigned to + "TD002", # Missing author in TODO; try: `# TODO(): ...` or `# TODO @: ... "TID252", # Relative imports from parent modules are bannedRuff "TRY003", # Avoid specifying long messages outside the exception class ] diff --git a/src/apify_client/_errors.py b/src/apify_client/_errors.py index a4fe464a..655acf51 100644 --- a/src/apify_client/_errors.py +++ b/src/apify_client/_errors.py @@ -45,10 +45,10 @@ def __init__(self: ApifyApiError, response: httpx.Response, attempt: int) -> Non self.attempt = attempt self.http_method = response.request.method - # TODO: self.client_method # noqa: TD002, TD003 - # TODO: self.original_stack # noqa: TD002, TD003 - # TODO: self.path # noqa: TD002, TD003 - # TODO: self.stack # noqa: TD002, TD003 + # TODO: self.client_method # noqa: TD003 + # TODO: self.original_stack # noqa: TD003 + # TODO: self.path # noqa: TD003 + # TODO: self.stack # noqa: TD003 class InvalidResponseBodyError(ApifyClientError):