Skip to content

Commit 252f010

Browse files
committed
only locally for tests
1 parent 22928b4 commit 252f010

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

pyproject.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,6 @@ indent-style = "space"
173173
# Local imports in Scrapy project.
174174
"TID252", # Prefer absolute imports over relative imports from parent modules
175175
]
176-
"**/tests/**/test_scrapy/actor_source/__main__.py" = [
177-
# Because of asyncioreactor.install() call.
178-
"E402", # Module level import not at top of file
179-
# Local imports are mixed up with the Apify SDK.
180-
"I001", # Import block is un-sorted or un-formatted
181-
]
182176

183177
[tool.ruff.lint.flake8-quotes]
184178
docstring-quotes = "double"

tests/e2e/test_scrapy/actor_source/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
install_reactor('twisted.internet.asyncioreactor.AsyncioSelectorReactor')
66

7-
import os
7+
import os # noqa: E402, I001
88

9-
from apify.scrapy import initialize_logging, run_scrapy_actor
9+
from apify.scrapy import initialize_logging, run_scrapy_actor # noqa: E402
1010

11-
from .main import main
11+
from .main import main # noqa: E402
1212

1313
os.environ['SCRAPY_SETTINGS_MODULE'] = 'src.settings'
1414

0 commit comments

Comments
 (0)