Skip to content

Commit 93dffc4

Browse files
committed
chore: run ruff
1 parent 7b2c453 commit 93dffc4

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

src/apify/_actor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from apify._models import ActorRun
2323
from apify._platform_event_manager import EventManager, LocalEventManager, PlatformEventManager
2424
from apify._proxy_configuration import ProxyConfiguration
25-
from apify._utils import get_system_info, is_running_in_ipython, docs_group, docs_name
25+
from apify._utils import docs_group, docs_name, get_system_info, is_running_in_ipython
2626
from apify.apify_storage_client import ApifyStorageClient
2727
from apify.log import _configure_logging, logger
2828
from apify.storages import Dataset, KeyValueStore, RequestQueue

src/apify/_platform_event_manager.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
EventSystemInfoData,
2020
)
2121

22-
from apify.log import logger
23-
2422
from apify._utils import docs_group
23+
from apify.log import logger
2524

2625
if TYPE_CHECKING:
2726
from types import TracebackType

src/apify/_proxy_configuration.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
from crawlee.proxy_configuration import _NewUrlFunction
1717

1818
from apify._configuration import Configuration
19-
from apify.log import logger
20-
2119
from apify._utils import docs_group
20+
from apify.log import logger
2221

2322
if TYPE_CHECKING:
2423
from apify_client import ApifyClientAsync

src/apify/_utils.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
from __future__ import annotations
22

3-
from typing import Callable, Literal
4-
53
import builtins
64
import sys
75
from importlib import metadata
6+
from typing import Callable, Literal
87

98

109
def get_system_info() -> dict:
@@ -44,8 +43,10 @@ def wrapper(func: Callable) -> Callable:
4443
return wrapper
4544

4645

47-
def docs_name(symbol_name: str) -> Callable:
48-
"""Decorator for renaming symbols in documentation. This changes the rendered name of the symbol only in the web documentation.
46+
def docs_name(symbol_name: str) -> Callable: # noqa: ARG001
47+
"""Decorator for renaming symbols in documentation.
48+
49+
This changes the rendered name of the symbol only in the rendered web documentation.
4950
5051
This decorator is used purely for documentation purposes and does not alter the behavior
5152
of the decorated callable.

src/apify/apify_storage_client/_apify_storage_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
from crawlee.base_storage_client import BaseStorageClient
66

77
from apify._configuration import Configuration
8+
from apify._utils import docs_group
89
from apify.apify_storage_client._dataset_client import DatasetClient
910
from apify.apify_storage_client._dataset_collection_client import DatasetCollectionClient
1011
from apify.apify_storage_client._key_value_store_client import KeyValueStoreClient
1112
from apify.apify_storage_client._key_value_store_collection_client import KeyValueStoreCollectionClient
1213
from apify.apify_storage_client._request_queue_client import RequestQueueClient
1314
from apify.apify_storage_client._request_queue_collection_client import RequestQueueCollectionClient
1415

15-
from apify._utils import docs_group
16-
1716

1817
@docs_group('Classes')
1918
class ApifyStorageClient(BaseStorageClient):

0 commit comments

Comments
 (0)