Skip to content

Commit 774c17f

Browse files
authored
Upgrade ruff and remove "noqa: A003" (#177)
1 parent c56b035 commit 774c17f

15 files changed

+28
-28
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ dev = [
4343
"pytest-timeout ~= 2.2.0",
4444
"pytest-xdist ~= 3.3.1",
4545
"redbaron ~= 0.9.2",
46-
"ruff ~= 0.1.5",
46+
"ruff ~= 0.1.13",
4747
"twine ~= 4.0.2",
4848
]
4949

src/apify_client/_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def _get_extra_fields(self: _DebugLogFormatter, record: logging.LogRecord) -> di
113113

114114
return extra_fields
115115

116-
def format(self: _DebugLogFormatter, record: logging.LogRecord) -> str: # noqa: A003
116+
def format(self: _DebugLogFormatter, record: logging.LogRecord) -> str:
117117
extra = self._get_extra_fields(record)
118118

119119
log_string = super().format(record)

src/apify_client/clients/resource_clients/actor_collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self: ActorCollectionClient, *args: Any, **kwargs: Any) -> None:
2020
resource_path = kwargs.pop('resource_path', 'acts')
2121
super().__init__(*args, resource_path=resource_path, **kwargs)
2222

23-
def list( # noqa: A003
23+
def list(
2424
self: ActorCollectionClient,
2525
*,
2626
my: bool | None = None,
@@ -123,7 +123,7 @@ def __init__(self: ActorCollectionClientAsync, *args: Any, **kwargs: Any) -> Non
123123
resource_path = kwargs.pop('resource_path', 'acts')
124124
super().__init__(*args, resource_path=resource_path, **kwargs)
125125

126-
async def list( # noqa: A003
126+
async def list(
127127
self: ActorCollectionClientAsync,
128128
*,
129129
my: bool | None = None,

src/apify_client/clients/resource_clients/actor_env_var_collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self: ActorEnvVarCollectionClient, *args: Any, **kwargs: Any) -> No
2020
resource_path = kwargs.pop('resource_path', 'env-vars')
2121
super().__init__(*args, resource_path=resource_path, **kwargs)
2222

23-
def list(self: ActorEnvVarCollectionClient) -> ListPage[dict]: # noqa: A003
23+
def list(self: ActorEnvVarCollectionClient) -> ListPage[dict]:
2424
"""List the available actor environment variables.
2525
2626
https://docs.apify.com/api/v2#/reference/actors/environment-variable-collection/get-list-of-environment-variables
@@ -67,7 +67,7 @@ def __init__(self: ActorEnvVarCollectionClientAsync, *args: Any, **kwargs: Any)
6767
resource_path = kwargs.pop('resource_path', 'env-vars')
6868
super().__init__(*args, resource_path=resource_path, **kwargs)
6969

70-
async def list(self: ActorEnvVarCollectionClientAsync) -> ListPage[dict]: # noqa: A003
70+
async def list(self: ActorEnvVarCollectionClientAsync) -> ListPage[dict]:
7171
"""List the available actor environment variables.
7272
7373
https://docs.apify.com/api/v2#/reference/actors/environment-variable-collection/get-list-of-environment-variables

src/apify_client/clients/resource_clients/actor_version_collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self: ActorVersionCollectionClient, *args: Any, **kwargs: Any) -> N
2121
resource_path = kwargs.pop('resource_path', 'versions')
2222
super().__init__(*args, resource_path=resource_path, **kwargs)
2323

24-
def list(self: ActorVersionCollectionClient) -> ListPage[dict]: # noqa: A003
24+
def list(self: ActorVersionCollectionClient) -> ListPage[dict]:
2525
"""List the available actor versions.
2626
2727
https://docs.apify.com/api/v2#/reference/actors/version-collection/get-list-of-versions
@@ -92,7 +92,7 @@ def __init__(self: ActorVersionCollectionClientAsync, *args: Any, **kwargs: Any)
9292
resource_path = kwargs.pop('resource_path', 'versions')
9393
super().__init__(*args, resource_path=resource_path, **kwargs)
9494

95-
async def list(self: ActorVersionCollectionClientAsync) -> ListPage[dict]: # noqa: A003
95+
async def list(self: ActorVersionCollectionClientAsync) -> ListPage[dict]:
9696
"""List the available actor versions.
9797
9898
https://docs.apify.com/api/v2#/reference/actors/version-collection/get-list-of-versions

src/apify_client/clients/resource_clients/build_collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(self: BuildCollectionClient, *args: Any, **kwargs: Any) -> None:
1919
resource_path = kwargs.pop('resource_path', 'actor-builds')
2020
super().__init__(*args, resource_path=resource_path, **kwargs)
2121

22-
def list( # noqa: A003
22+
def list(
2323
self: BuildCollectionClient,
2424
*,
2525
limit: int | None = None,
@@ -51,7 +51,7 @@ def __init__(self: BuildCollectionClientAsync, *args: Any, **kwargs: Any) -> Non
5151
resource_path = kwargs.pop('resource_path', 'actor-builds')
5252
super().__init__(*args, resource_path=resource_path, **kwargs)
5353

54-
async def list( # noqa: A003
54+
async def list(
5555
self: BuildCollectionClientAsync,
5656
*,
5757
limit: int | None = None,

src/apify_client/clients/resource_clients/dataset_collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(self: DatasetCollectionClient, *args: Any, **kwargs: Any) -> None:
1919
resource_path = kwargs.pop('resource_path', 'datasets')
2020
super().__init__(*args, resource_path=resource_path, **kwargs)
2121

22-
def list( # noqa: A003
22+
def list(
2323
self: DatasetCollectionClient,
2424
*,
2525
unnamed: bool | None = None,
@@ -66,7 +66,7 @@ def __init__(self: DatasetCollectionClientAsync, *args: Any, **kwargs: Any) -> N
6666
resource_path = kwargs.pop('resource_path', 'datasets')
6767
super().__init__(*args, resource_path=resource_path, **kwargs)
6868

69-
async def list( # noqa: A003
69+
async def list(
7070
self: DatasetCollectionClientAsync,
7171
*,
7272
unnamed: bool | None = None,

src/apify_client/clients/resource_clients/key_value_store_collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(self: KeyValueStoreCollectionClient, *args: Any, **kwargs: Any) ->
1919
resource_path = kwargs.pop('resource_path', 'key-value-stores')
2020
super().__init__(*args, resource_path=resource_path, **kwargs)
2121

22-
def list( # noqa: A003
22+
def list(
2323
self: KeyValueStoreCollectionClient,
2424
*,
2525
unnamed: bool | None = None,
@@ -71,7 +71,7 @@ def __init__(self: KeyValueStoreCollectionClientAsync, *args: Any, **kwargs: Any
7171
resource_path = kwargs.pop('resource_path', 'key-value-stores')
7272
super().__init__(*args, resource_path=resource_path, **kwargs)
7373

74-
async def list( # noqa: A003
74+
async def list(
7575
self: KeyValueStoreCollectionClientAsync,
7676
*,
7777
unnamed: bool | None = None,

src/apify_client/clients/resource_clients/request_queue_collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(self: RequestQueueCollectionClient, *args: Any, **kwargs: Any) -> N
1919
resource_path = kwargs.pop('resource_path', 'request-queues')
2020
super().__init__(*args, resource_path=resource_path, **kwargs)
2121

22-
def list( # noqa: A003
22+
def list(
2323
self: RequestQueueCollectionClient,
2424
*,
2525
unnamed: bool | None = None,
@@ -65,7 +65,7 @@ def __init__(self: RequestQueueCollectionClientAsync, *args: Any, **kwargs: Any)
6565
resource_path = kwargs.pop('resource_path', 'request-queues')
6666
super().__init__(*args, resource_path=resource_path, **kwargs)
6767

68-
async def list( # noqa: A003
68+
async def list(
6969
self: RequestQueueCollectionClientAsync,
7070
*,
7171
unnamed: bool | None = None,

src/apify_client/clients/resource_clients/run_collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self: RunCollectionClient, *args: Any, **kwargs: Any) -> None:
2020
resource_path = kwargs.pop('resource_path', 'actor-runs')
2121
super().__init__(*args, resource_path=resource_path, **kwargs)
2222

23-
def list( # noqa: A003
23+
def list(
2424
self: RunCollectionClient,
2525
*,
2626
limit: int | None = None,
@@ -60,7 +60,7 @@ def __init__(self: RunCollectionClientAsync, *args: Any, **kwargs: Any) -> None:
6060
resource_path = kwargs.pop('resource_path', 'actor-runs')
6161
super().__init__(*args, resource_path=resource_path, **kwargs)
6262

63-
async def list( # noqa: A003
63+
async def list(
6464
self: RunCollectionClientAsync,
6565
*,
6666
limit: int | None = None,

0 commit comments

Comments
 (0)