Skip to content

Commit 7b2c453

Browse files
committed
chore: run formatter
1 parent cfe0816 commit 7b2c453

File tree

7 files changed

+24
-0
lines changed

7 files changed

+24
-0
lines changed

src/apify/_actor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
MainReturnType = TypeVar('MainReturnType')
4040

41+
4142
@docs_name('Actor')
4243
@docs_group('Classes')
4344
class _ActorType:

src/apify/_configuration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
from apify._utils import docs_group
1515

16+
1617
@docs_group('Classes')
1718
class Configuration(CrawleeConfiguration):
1819
"""A class for specifying the configuration of an Actor.

src/apify/_models.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
from apify._utils import docs_group
1414

15+
1516
@docs_group('Data structures')
1617
class Webhook(BaseModel):
1718
__model_config__ = ConfigDict(populate_by_name=True)
@@ -30,12 +31,14 @@ class Webhook(BaseModel):
3031
Field(description='Template for the payload sent by the webook'),
3132
] = None
3233

34+
3335
@docs_group('Data structures')
3436
class ActorRunMeta(BaseModel):
3537
__model_config__ = ConfigDict(populate_by_name=True)
3638

3739
origin: Annotated[MetaOrigin, Field()]
3840

41+
3942
@docs_group('Data structures')
4043
class ActorRunStats(BaseModel):
4144
__model_config__ = ConfigDict(populate_by_name=True)
@@ -56,6 +59,7 @@ class ActorRunStats(BaseModel):
5659
metamorph: Annotated[int | None, Field(alias='metamorph')] = None
5760
compute_units: Annotated[float, Field(alias='computeUnits')]
5861

62+
5963
@docs_group('Data structures')
6064
class ActorRunOptions(BaseModel):
6165
__model_config__ = ConfigDict(populate_by_name=True)
@@ -65,6 +69,7 @@ class ActorRunOptions(BaseModel):
6569
memory_mbytes: Annotated[int, Field(alias='memoryMbytes')]
6670
disk_mbytes: Annotated[int, Field(alias='diskMbytes')]
6771

72+
6873
@docs_group('Data structures')
6974
class ActorRunUsage(BaseModel):
7075
__model_config__ = ConfigDict(populate_by_name=True)
@@ -82,6 +87,7 @@ class ActorRunUsage(BaseModel):
8287
proxy_residential_transfer_gbytes: Annotated[float | None, Field(alias='PROXY_RESIDENTIAL_TRANSFER_GBYTES')] = None
8388
proxy_serps: Annotated[float | None, Field(alias='PROXY_SERPS')] = None
8489

90+
8591
@docs_group('Data structures')
8692
class ActorRun(BaseModel):
8793
__model_config__ = ConfigDict(populate_by_name=True)

src/apify/_platform_event_manager.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@
3131

3232
__all__ = ['EventManager', 'LocalEventManager', 'PlatformEventManager']
3333

34+
3435
@docs_group('Data structures')
3536
class PersistStateEvent(BaseModel):
3637
name: Literal[Event.PERSIST_STATE]
3738
data: Annotated[EventPersistStateData, Field(default_factory=lambda: EventPersistStateData(is_migrating=False))]
3839

40+
3941
@docs_group('Data structures')
4042
class SystemInfoEventData(BaseModel):
4143
mem_avg_bytes: Annotated[float, Field(alias='memAvgBytes')]
@@ -62,26 +64,31 @@ def to_crawlee_format(self) -> EventSystemInfoData:
6264
}
6365
)
6466

67+
6568
@docs_group('Data structures')
6669
class SystemInfoEvent(BaseModel):
6770
name: Literal[Event.SYSTEM_INFO]
6871
data: SystemInfoEventData
6972

73+
7074
@docs_group('Data structures')
7175
class MigratingEvent(BaseModel):
7276
name: Literal[Event.MIGRATING]
7377
data: Annotated[EventMigratingData, Field(default_factory=EventMigratingData)]
7478

79+
7580
@docs_group('Data structures')
7681
class AbortingEvent(BaseModel):
7782
name: Literal[Event.ABORTING]
7883
data: Annotated[EventAbortingData, Field(default_factory=EventAbortingData)]
7984

85+
8086
@docs_group('Data structures')
8187
class ExitEvent(BaseModel):
8288
name: Literal[Event.EXIT]
8389
data: Annotated[EventExitData, Field(default_factory=EventExitData)]
8490

91+
8592
@docs_group('Data structures')
8693
class EventWithoutData(BaseModel):
8794
name: Literal[
@@ -94,11 +101,13 @@ class EventWithoutData(BaseModel):
94101
]
95102
data: Any = None
96103

104+
97105
@docs_group('Data structures')
98106
class DeprecatedEvent(BaseModel):
99107
name: Literal['cpuInfo']
100108
data: Annotated[dict[str, Any], Field(default_factory=dict)]
101109

110+
102111
@docs_group('Data structures')
103112
class UnknownEvent(BaseModel):
104113
name: str
@@ -125,6 +134,8 @@ class UnknownEvent(BaseModel):
125134
UnknownEvent,
126135
]
127136
)
137+
138+
128139
@docs_group('Classes')
129140
class PlatformEventManager(EventManager):
130141
"""A class for managing Actor events.

src/apify/_proxy_configuration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ class ProxyInfo(CrawleeProxyInfo):
8989
This parameter is optional, by default, the proxy uses all available proxy servers from all countries.
9090
"""
9191

92+
9293
@docs_group('Classes')
9394
class ProxyConfiguration(CrawleeProxyConfiguration):
9495
"""Configures a connection to a proxy server with the provided options.

src/apify/_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ def get_system_info() -> dict:
2727
def is_running_in_ipython() -> bool:
2828
return getattr(builtins, '__IPYTHON__', False)
2929

30+
3031
GroupName = Literal['Classes', 'Abstract classes', 'Data structures', 'Errors', 'Functions']
3132

33+
3234
def docs_group(group_name: GroupName) -> Callable: # noqa: ARG001
3335
"""Decorator to mark symbols for rendering and grouping in documentation.
3436
@@ -41,6 +43,7 @@ def wrapper(func: Callable) -> Callable:
4143

4244
return wrapper
4345

46+
4447
def docs_name(symbol_name: str) -> Callable:
4548
"""Decorator for renaming symbols in documentation. This changes the rendered name of the symbol only in the web documentation.
4649

src/apify/apify_storage_client/_apify_storage_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
from apify._utils import docs_group
1616

17+
1718
@docs_group('Classes')
1819
class ApifyStorageClient(BaseStorageClient):
1920
"""A storage client implementation based on the Apify platform storage."""

0 commit comments

Comments
 (0)