Skip to content

Commit

Permalink
Attempt to fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarkall committed May 1, 2024
1 parent ee48694 commit 3dc7343
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cunumeric/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/utils/comparisons.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 3dc7343

Please sign in to comment.