Skip to content

chore: adapt to ruff v0.12 #430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ dev = [
"pytest~=8.4.0",
"redbaron~=0.9.0",
"respx~=0.22.0",
"ruff~=0.11.0",
"ruff~=0.12.0",
"setuptools", # setuptools are used by pytest but not explicitly required
"types-colorama~=0.4.15.20240106",
]
Expand Down
4 changes: 2 additions & 2 deletions src/apify_client/clients/base/actor_job_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _wait_for_finish(self, wait_secs: int | None = None) -> dict | None:

return job

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

return job

async def _abort(self, gracefully: bool | None = None) -> dict:
async def _abort(self, *, gracefully: bool | None = None) -> dict:
response = await self.http_client.call(
url=self._url('abort'),
method='POST',
Expand Down
5 changes: 3 additions & 2 deletions src/apify_client/clients/resource_clients/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@

def _get_schedule_representation(
cron_expression: str | None = None,
is_enabled: bool | None = None,
is_exclusive: bool | None = None,
name: str | None = None,
actions: list[dict] | None = None,
description: str | None = None,
timezone: str | None = None,
title: str | None = None,
*,
is_enabled: bool | None = None,
is_exclusive: bool | None = None,
) -> dict:
return {
'cronExpression': cron_expression,
Expand Down
44 changes: 22 additions & 22 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.