From 3dc7343e929dcc3f2f1b178a26cd9a0d9ad270e4 Mon Sep 17 00:00:00 2001 From: Graham Markall Date: Wed, 1 May 2024 14:36:16 +0100 Subject: [PATCH] Attempt to fix flake8 --- cunumeric/module.py | 2 +- install.py | 2 +- tests/integration/utils/comparisons.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cunumeric/module.py b/cunumeric/module.py index 424f89df4..e87670b75 100644 --- a/cunumeric/module.py +++ b/cunumeric/module.py @@ -1748,7 +1748,7 @@ def check_list_depth(arr: Any, prefix: NdShape = (0,)) -> int: "List depths are mismatched. First element was at depth " f"{first_depth}, but there is an element at" f" depth {other_depth}, " - f"arrays{convert_to_array_form(prefix+(idx+1,))}" + f"arrays{convert_to_array_form(prefix + (idx + 1,))}" ) return depths[0] + 1 diff --git a/install.py b/install.py index 92d16ad55..7dcc6e588 100755 --- a/install.py +++ b/install.py @@ -338,7 +338,7 @@ def validate_path(path): cmake_flags += f"""\ -DCMAKE_BUILD_TYPE={( - "Debug" if debug else "RelWithDebInfo" if debug_release else "Release" +"Debug" if debug else "RelWithDebInfo" if debug_release else "Release" )} -DBUILD_SHARED_LIBS=ON -DCMAKE_CUDA_ARCHITECTURES={str(arch)} diff --git a/tests/integration/utils/comparisons.py b/tests/integration/utils/comparisons.py index 65571b38c..9ab5247e9 100644 --- a/tests/integration/utils/comparisons.py +++ b/tests/integration/utils/comparisons.py @@ -50,7 +50,7 @@ def allclose( inds = islice(zip(*np.where(~close)), diff_limit) diffs = [f" index {i}: {a[i]} {b[i]}" for i in inds] N = len(diffs) - print(f"First {N} difference{'s' if N>1 else ''} for allclose:\n") + print(f"First {N} difference{'s' if N > 1 else ''} for allclose:\n") print("\n".join(diffs)) print(f"\nWith diff_limit={diff_limit}\n")