Scrapy, a fast high-level web crawling & scraping framework for Python.
flake8-debugger
Andrey Rakhmatullind13219062500
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 63da5544d..eb3404b7f 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -8,6 +8,8 @@ repos:rev: 7.0.0hooks:- id: flake8+ additional_dependencies:+ - flake8-debugger- repo: https://github.com/psf/black.gitrev: 24.2.0hooks:diff --git a/scrapy/extensions/debug.py b/scrapy/extensions/debug.pyindex a0fc7b99f..b360ce48d 100644--- a/scrapy/extensions/debug.py+++ b/scrapy/extensions/debug.py@@ -74,4 +74,4 @@ class Debugger:def _enter_debugger(self, signum: int, frame: Optional[FrameType]) -> None:assert frame- Pdb().set_trace(frame.f_back)+ Pdb().set_trace(frame.f_back) # noqa: T100diff --git a/scrapy/utils/console.py b/scrapy/utils/console.pyindex bf1803115..328219831 100644--- a/scrapy/utils/console.py+++ b/scrapy/utils/console.py@@ -10,10 +10,10 @@ def _embed_ipython_shell() -> EmbedFuncT:"""Start an IPython Shell"""try:- from IPython.terminal.embed import InteractiveShellEmbed+ from IPython.terminal.embed import InteractiveShellEmbed # noqa: T100from IPython.terminal.ipapp import load_default_configexcept ImportError:- from IPython.frontend.terminal.embed import ( # type: ignore[no-redef]+ from IPython.frontend.terminal.embed import ( # type: ignore[no-redef] # noqa: T100InteractiveShellEmbed,)from IPython.frontend.terminal.ipapp import ( # type: ignore[no-redef]