flake8-debugger

This commit is contained in:
Andrey Rakhmatullin 2024-06-19 23:26:25 +05:00
parent a364560fad
commit d132190625
3 changed files with 5 additions and 3 deletions

View File

@ -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:

View File

@ -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

View File

@ -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]