File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55try :
66 from comma ._version import ( # type: ignore[no-redef,unused-ignore]
7- __version__ , #
7+ __version__ ,
88 )
99except ModuleNotFoundError :
1010 try :
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def run(self) -> subprocess.CompletedProcess[str]:
2929 logging .debug (self )
3030 try :
3131 return subprocess .run (
32- self .cmd , # noqa: S603
32+ self .cmd ,
3333 errors = "ignore" ,
3434 encoding = "utf-8" ,
3535 text = self .text ,
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ def __enter__(self) -> Self:
5454 """
5555 self .__stack__ = ExitStack ().__enter__ ()
5656 try :
57- self .left_writer = self .__stack__ .enter_context (open (self .__left__ , "w" )) # noqa: SIM115
58- self .right_writer = self .__stack__ .enter_context (open (self .__right__ , "w" )) # noqa: SIM115
57+ self .left_writer = self .__stack__ .enter_context (open (self .__left__ , "w" ))
58+ self .right_writer = self .__stack__ .enter_context (open (self .__right__ , "w" ))
5959 except BaseException :
6060 self .__stack__ .close ()
6161 raise
Original file line number Diff line number Diff line change 4040}
4141
4242
43- @pytest .mark .parametrize ("node" , TyperReflection (app = app_main )._traverse_nodes_ ()) # noqa: SLF001
43+ @pytest .mark .parametrize ("node" , TyperReflection (app = app_main )._traverse_nodes_ ())
4444def test_help (node : TyperNode ) -> None :
4545 if node .path in ignore_commands :
4646 return
Original file line number Diff line number Diff line change 229229def test_gron (obj : JSON_TYPE ) -> None :
230230 actual = gron (obj )
231231 expected = subprocess .run (
232- (GRON_PROVIDER .get_executable (),), # noqa: S603
232+ (GRON_PROVIDER .get_executable (),),
233233 input = json .dumps (obj ),
234234 capture_output = True ,
235235 text = True ,
@@ -242,7 +242,7 @@ def test_gron(obj: JSON_TYPE) -> None:
242242 "original" ,
243243 (
244244 subprocess .run (
245- (GRON_PROVIDER .get_executable (),), # noqa: S603
245+ (GRON_PROVIDER .get_executable (),),
246246 capture_output = True ,
247247 text = True ,
248248 input = x ,
@@ -255,7 +255,7 @@ def test_ungron(original: list[str]) -> None:
255255
256256 expected = json .loads (
257257 subprocess .run (
258- (GRON_PROVIDER .get_executable (), "--ungron" ), # noqa: S603
258+ (GRON_PROVIDER .get_executable (), "--ungron" ),
259259 input = "\n " .join (original ),
260260 capture_output = True ,
261261 text = True ,
You can’t perform that action at this time.
0 commit comments