File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ def bytes_to_human(size_bytes: int | float) -> str:
109109 :return: Human readable size
110110 """
111111
112- from math import floor , log , pow
112+ from math import floor , log
113113
114114 if size_bytes <= 0 :
115115 return "0B"
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ def test_init(self, is_file: bool):
121121
122122 # Get tmp file
123123 if is_file :
124- tmp_file_object = tempfile .NamedTemporaryFile (mode = "w+" , delete = False )
124+ tmp_file_object = tempfile .NamedTemporaryFile (mode = "w+" , delete = False ) # noqa: SIM115
125125 else :
126126 tmp_file_object = tempfile .TemporaryDirectory ()
127127
@@ -167,7 +167,7 @@ def test_dry_run_only(self, is_file: bool):
167167
168168 # Get tmp file
169169 if is_file :
170- tmp_file_object = tempfile .NamedTemporaryFile (mode = "w+" , delete = False )
170+ tmp_file_object = tempfile .NamedTemporaryFile (mode = "w+" , delete = False ) # noqa: SIM115
171171 else :
172172 tmp_file_object = tempfile .TemporaryDirectory ()
173173
@@ -198,7 +198,7 @@ def test_execute(self, is_file: bool):
198198
199199 # Get tmp file
200200 if is_file :
201- tmp_file_object = tempfile .NamedTemporaryFile (mode = "w+" , delete = False )
201+ tmp_file_object = tempfile .NamedTemporaryFile (mode = "w+" , delete = False ) # noqa: SIM115
202202 else :
203203 tmp_file_object = tempfile .TemporaryDirectory ()
204204
You can’t perform that action at this time.
0 commit comments