Change dependencies constraints, fix 'Looking for junk' print statement location

This commit is contained in:
2025-11-29 16:59:53 +00:00
parent 6c1d2dc430
commit 6cdfd2fc44
3 changed files with 6 additions and 5 deletions

2
poetry.lock generated
View File

@@ -555,4 +555,4 @@ test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess
[metadata] [metadata]
lock-version = "2.0" lock-version = "2.0"
python-versions = ">=3.10,<4.0" python-versions = ">=3.10,<4.0"
content-hash = "676393f654b241eb2ea6f983d589e83daff16e0b0ca2cb76228c0cd5ed447591" content-hash = "5ffc6940e33919ad5c8107dde30e6203d63a3bb64eaab81013cde2e773964657"

View File

@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "filedust" name = "filedust"
version = "0.3.0" version = "0.3.1"
description = "Opinionated junk cleaner for dev machines (caches, build artifacts, editor backups)." description = "Opinionated junk cleaner for dev machines (caches, build artifacts, editor backups)."
authors = ["Marco D'Aleo <marco@marcodaleo.com>"] authors = ["Marco D'Aleo <marco@marcodaleo.com>"]
license = "GPL-3.0-or-later" license = "GPL-3.0-or-later"
@@ -11,8 +11,8 @@ packages = [{ include = "filedust", from = "src" }]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = ">=3.10,<4.0" python = ">=3.10,<4.0"
rich = "^13.0.0" rich = ">=12"
argcomplete = "^3.3.0" argcomplete = ">=2"
[tool.poetry.scripts] [tool.poetry.scripts]
filedust = "filedust.cli:main" filedust = "filedust.cli:main"

View File

@@ -168,7 +168,6 @@ def delete_all(findings: List[Finding]) -> int:
def main(argv: list[str] | None = None) -> int: def main(argv: list[str] | None = None) -> int:
print("Looking for junk ...")
parser = build_parser() parser = build_parser()
args = parser.parse_args(argv) 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}") console.print(f"[red]Error:[/] Path not found: {root}")
return 1 return 1
print("Looking for junk ...")
if root.resolve() == Path("/"): if root.resolve() == Path("/"):
console.print( console.print(
"[yellow]Running filedust on the entire filesystem (/). " "[yellow]Running filedust on the entire filesystem (/). "