From 3ea83c8862772bd76934c3768aa91101bae35f2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20S=C3=B8ndergaard?= Date: Tue, 18 Jun 2024 19:56:25 +0200 Subject: [PATCH] Fix lint --- src/gwf/plugins/clean.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gwf/plugins/clean.py b/src/gwf/plugins/clean.py index 041ef0b4..e6643eb4 100644 --- a/src/gwf/plugins/clean.py +++ b/src/gwf/plugins/clean.py @@ -56,9 +56,11 @@ def clean(ctx, targets, all, force): matches = list(filter_generic(targets=graph, filters=filters)) total_size = sum( - os.path.getsize(path) - if os.path.exists(path) and path not in target.protected() - else 0 + ( + os.path.getsize(path) + if os.path.exists(path) and path not in target.protected() + else 0 + ) for target in matches for path in target.flattened_outputs() )