mirror of https://github.com/scrapy/scrapy.git
flake8-debugger
This commit is contained in:
parent
a364560fad
commit
d132190625
|
|
@ -8,6 +8,8 @@ repos:
|
|||
rev: 7.0.0
|
||||
hooks:
|
||||
- id: flake8
|
||||
additional_dependencies:
|
||||
- flake8-debugger
|
||||
- repo: https://github.com/psf/black.git
|
||||
rev: 24.2.0
|
||||
hooks:
|
||||
|
|
|
|||
|
|
@ -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: T100
|
||||
|
|
|
|||
|
|
@ -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: T100
|
||||
from IPython.terminal.ipapp import load_default_config
|
||||
except ImportError:
|
||||
from IPython.frontend.terminal.embed import ( # type: ignore[no-redef]
|
||||
from IPython.frontend.terminal.embed import ( # type: ignore[no-redef] # noqa: T100
|
||||
InteractiveShellEmbed,
|
||||
)
|
||||
from IPython.frontend.terminal.ipapp import ( # type: ignore[no-redef]
|
||||
|
|
|
|||
Loading…
Reference in New Issue