Skip to content

Commit 52aaaf2

Browse files
committed
Update of Ruff configuration
1 parent dfd9b9c commit 52aaaf2

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ ignore = [
7575
"FIX", # flake8-fixme
7676
"PGH003", # Use specific rule codes when ignoring type issues
7777
"PLR0913", # Too many arguments in function definition
78-
"PTH123", # `open()` should be replaced by `Path.open()`
78+
"PTH", # flake8-use-pathlib
7979
"S102", # Use of `exec` detected
8080
"S105", # Possible hardcoded password assigned to
81+
"TD002", # Missing author in TODO; try: `# TODO(<author_name>): ...` or `# TODO @<author_name>: ...
8182
"TID252", # Relative imports from parent modules are bannedRuff
8283
"TRY003", # Avoid specifying long messages outside the exception class
8384
]

src/apify_client/_errors.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ def __init__(self: ApifyApiError, response: httpx.Response, attempt: int) -> Non
4545
self.attempt = attempt
4646
self.http_method = response.request.method
4747

48-
# TODO: self.client_method # noqa: TD002, TD003
49-
# TODO: self.original_stack # noqa: TD002, TD003
50-
# TODO: self.path # noqa: TD002, TD003
51-
# TODO: self.stack # noqa: TD002, TD003
48+
# TODO: self.client_method # noqa: TD003
49+
# TODO: self.original_stack # noqa: TD003
50+
# TODO: self.path # noqa: TD003
51+
# TODO: self.stack # noqa: TD003
5252

5353

5454
class InvalidResponseBodyError(ApifyClientError):

0 commit comments

Comments
 (0)