From 6cdfd2fc443d166167adf2451ee707496379ba03 Mon Sep 17 00:00:00 2001 From: Marco D'Aleo Date: Sat, 29 Nov 2025 16:59:53 +0000 Subject: [PATCH] Change dependencies constraints, fix 'Looking for junk' print statement location --- poetry.lock | 2 +- pyproject.toml | 6 +++--- src/filedust/cli.py | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/poetry.lock b/poetry.lock index c12a94c..dedf90f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -555,4 +555,4 @@ test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess [metadata] lock-version = "2.0" python-versions = ">=3.10,<4.0" -content-hash = "676393f654b241eb2ea6f983d589e83daff16e0b0ca2cb76228c0cd5ed447591" +content-hash = "5ffc6940e33919ad5c8107dde30e6203d63a3bb64eaab81013cde2e773964657" diff --git a/pyproject.toml b/pyproject.toml index 3b89d66..3211483 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "filedust" -version = "0.3.0" +version = "0.3.1" description = "Opinionated junk cleaner for dev machines (caches, build artifacts, editor backups)." authors = ["Marco D'Aleo "] license = "GPL-3.0-or-later" @@ -11,8 +11,8 @@ packages = [{ include = "filedust", from = "src" }] [tool.poetry.dependencies] python = ">=3.10,<4.0" -rich = "^13.0.0" -argcomplete = "^3.3.0" +rich = ">=12" +argcomplete = ">=2" [tool.poetry.scripts] filedust = "filedust.cli:main" diff --git a/src/filedust/cli.py b/src/filedust/cli.py index f550f06..c48e6f3 100644 --- a/src/filedust/cli.py +++ b/src/filedust/cli.py @@ -168,7 +168,6 @@ def delete_all(findings: List[Finding]) -> int: def main(argv: list[str] | None = None) -> int: - print("Looking for junk ...") parser = build_parser() args = parser.parse_args(argv) @@ -191,6 +190,8 @@ def main(argv: list[str] | None = None) -> int: console.print(f"[red]Error:[/] Path not found: {root}") return 1 + print("Looking for junk ...") + if root.resolve() == Path("/"): console.print( "[yellow]Running filedust on the entire filesystem (/). "