Skip to content
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
166 changes: 83 additions & 83 deletions poetry.lock

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pytest-only = "~2.1.0"
pytest-timeout = "~2.3.0"
pytest-xdist = "~3.6.0"
respx = "~0.21.0"
ruff = "~0.7.0"
ruff = "~0.8.0"
setuptools = "~75.6.0" # setuptools are used by pytest but not explicitly required

[tool.poetry.extras]
Expand All @@ -82,8 +82,6 @@ line-length = 120
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN101", # Missing type annotation for `self` in method
"ANN102", # Missing type annotation for `{name}` in classmethod
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in {filename}
"ASYNC109", # Async function definition with a `timeout` parameter
"BLE001", # Do not catch blind exception
Expand Down Expand Up @@ -142,7 +140,10 @@ docstring-quotes = "double"
inline-quotes = "single"

[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = ["pydantic.BaseModel", "crawlee.configuration.Configuration"]
runtime-evaluated-base-classes = [
"pydantic.BaseModel",
"crawlee.configuration.Configuration",
]

[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["id"]
Expand Down Expand Up @@ -187,7 +188,7 @@ ignore_missing_imports = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"assert_never()"
"assert_never()",
]

[tool.basedpyright]
Expand Down
2 changes: 1 addition & 1 deletion src/apify/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

__all__ = [
'Actor',
'Event',
'Configuration',
'Event',
'ProxyConfiguration',
'ProxyInfo',
'Request',
Expand Down
4 changes: 2 additions & 2 deletions src/apify/scrapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from apify.scrapy.utils import get_basic_auth_header, get_running_event_loop_id

__all__ = [
'to_apify_request',
'to_scrapy_request',
'ApifyScheduler',
'get_basic_auth_header',
'get_running_event_loop_id',
'to_apify_request',
'to_scrapy_request',
]
2 changes: 1 addition & 1 deletion src/apify/storages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

from ._request_list import RequestList

__all__ = ['Dataset', 'KeyValueStore', 'RequestQueue', 'RequestList']
__all__ = ['Dataset', 'KeyValueStore', 'RequestList', 'RequestQueue']
4 changes: 2 additions & 2 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import sys
import textwrap
from pathlib import Path
from typing import TYPE_CHECKING, Any, Callable, Coroutine, Protocol, cast
from typing import TYPE_CHECKING, Any, Callable, Protocol, cast

import pytest
from filelock import FileLock
Expand All @@ -20,7 +20,7 @@
from apify._models import ActorRun

if TYPE_CHECKING:
from collections.abc import AsyncIterator, Awaitable, Mapping
from collections.abc import AsyncIterator, Awaitable, Coroutine, Mapping

from apify_client.clients.resource_clients import ActorClientAsync

Expand Down