Skip to content

Commit f4af530

Browse files
committed
chore: adapt to ruff v0.12
1 parent 578a8c9 commit f4af530

File tree

4 files changed

+28
-27
lines changed

4 files changed

+28
-27
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ dev = [
5151
"pytest~=8.4.0",
5252
"redbaron~=0.9.0",
5353
"respx~=0.22.0",
54-
"ruff~=0.11.0",
54+
"ruff~=0.12.0",
5555
"setuptools", # setuptools are used by pytest but not explicitly required
5656
"types-colorama~=0.4.15.20240106",
5757
]

src/apify_client/clients/base/actor_job_base_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _wait_for_finish(self, wait_secs: int | None = None) -> dict | None:
6464

6565
return job
6666

67-
def _abort(self, gracefully: bool | None = None) -> dict:
67+
def _abort(self, *, gracefully: bool | None = None) -> dict:
6868
response = self.http_client.call(
6969
url=self._url('abort'),
7070
method='POST',
@@ -119,7 +119,7 @@ async def _wait_for_finish(self, wait_secs: int | None = None) -> dict | None:
119119

120120
return job
121121

122-
async def _abort(self, gracefully: bool | None = None) -> dict:
122+
async def _abort(self, *, gracefully: bool | None = None) -> dict:
123123
response = await self.http_client.call(
124124
url=self._url('abort'),
125125
method='POST',

src/apify_client/clients/resource_clients/schedule.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111

1212
def _get_schedule_representation(
1313
cron_expression: str | None = None,
14-
is_enabled: bool | None = None,
15-
is_exclusive: bool | None = None,
1614
name: str | None = None,
1715
actions: list[dict] | None = None,
1816
description: str | None = None,
1917
timezone: str | None = None,
2018
title: str | None = None,
19+
*,
20+
is_enabled: bool | None = None,
21+
is_exclusive: bool | None = None,
2122
) -> dict:
2223
return {
2324
'cronExpression': cron_expression,

uv.lock

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)