Skip to content

Commit

Permalink
Update of Ruff configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
vdusek committed Nov 16, 2023
1 parent dfd9b9c commit 52aaaf2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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(<author_name>): ...` or `# TODO @<author_name>: ...
"TID252", # Relative imports from parent modules are bannedRuff
"TRY003", # Avoid specifying long messages outside the exception class
]
Expand Down
8 changes: 4 additions & 4 deletions src/apify_client/_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 52aaaf2

Please sign in to comment.