Skip to content

Commit

Permalink
chore: fixes after ruff bump
Browse files Browse the repository at this point in the history
  • Loading branch information
efa2d19 committed Mar 1, 2025
1 parent 3d2e715 commit 20f9785
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mac_cleanup/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def bytes_to_human(size_bytes: int | float) -> str:
:return: Human readable size
"""

from math import floor, log, pow
from math import floor, log

if size_bytes <= 0:
return "0B"
Expand Down
6 changes: 3 additions & 3 deletions tests/test_core_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def test_init(self, is_file: bool):

# Get tmp file
if is_file:
tmp_file_object = tempfile.NamedTemporaryFile(mode="w+", delete=False)
tmp_file_object = tempfile.NamedTemporaryFile(mode="w+", delete=False) # noqa: SIM115
else:
tmp_file_object = tempfile.TemporaryDirectory()

Expand Down Expand Up @@ -167,7 +167,7 @@ def test_dry_run_only(self, is_file: bool):

# Get tmp file
if is_file:
tmp_file_object = tempfile.NamedTemporaryFile(mode="w+", delete=False)
tmp_file_object = tempfile.NamedTemporaryFile(mode="w+", delete=False) # noqa: SIM115
else:
tmp_file_object = tempfile.TemporaryDirectory()

Expand Down Expand Up @@ -198,7 +198,7 @@ def test_execute(self, is_file: bool):

# Get tmp file
if is_file:
tmp_file_object = tempfile.NamedTemporaryFile(mode="w+", delete=False)
tmp_file_object = tempfile.NamedTemporaryFile(mode="w+", delete=False) # noqa: SIM115
else:
tmp_file_object = tempfile.TemporaryDirectory()

Expand Down

0 comments on commit 20f9785

Please sign in to comment.