Skip to content

Commit c1a9af4

Browse files
committed
chore: fixes after ruff bump
1 parent c2efa41 commit c1a9af4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mac_cleanup/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

tests/test_core_modules.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)