@@ -17,18 +17,18 @@ def is_debugpy_installed() -> bool:
1717
1818def wait_for_debugpy_connected () -> bool :
1919 if is_debugpy_installed ():
20- import debugpy
20+ import debugpy # noqa: T100
2121
2222 _logger .info ("wait for debugpy client" )
23- debugpy .wait_for_client ()
23+ debugpy .wait_for_client () # noqa: T100
2424
2525 return True
2626 return False
2727
2828
2929def enable_debugpy (port : int , addresses : Union [Sequence [str ], str , None ] = None ) -> bool :
3030 if is_debugpy_installed ():
31- import debugpy
31+ import debugpy # noqa: T100
3232
3333 if addresses is None :
3434 addresses = ["127.0.0.1" ]
@@ -37,25 +37,25 @@ def enable_debugpy(port: int, addresses: Union[Sequence[str], str, None] = None)
3737 addresses = [addresses ] # type: ignore
3838
3939 for address in addresses :
40- debugpy .listen ((address , port ))
40+ debugpy .listen ((address , port )) # noqa: T100
4141
4242 return True
4343 return False
4444
4545
4646def start_debugpy (end_point : Union [Tuple [str , int ], int ], wait_for_client : bool ) -> Optional [int ]:
4747 if is_debugpy_installed ():
48- import debugpy
48+ import debugpy # noqa: T100
4949
5050 if isinstance (end_point , int ):
5151 end_point = ("127.0.0.1" , end_point )
5252
5353 real_port = find_free_port (end_point [1 ])
5454
55- debugpy .listen ((end_point [0 ], real_port ))
55+ debugpy .listen ((end_point [0 ], real_port )) # noqa: T100
5656
5757 if wait_for_client :
5858 _logger .info ("wait for debugpy client" )
59- debugpy .wait_for_client ()
59+ debugpy .wait_for_client () # noqa: T100
6060 return real_port
6161 return None
0 commit comments