Skip to content

Commit d5f18db

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1bad215 commit d5f18db

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

examples/common.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,7 @@ class DummyScope:
171171
that may or may not use resource scoping.
172172
"""
173173

174-
def __init__(self):
175-
...
174+
def __init__(self): ...
176175

177176
def __enter__(self):
178177
"""Enter the context (no-op)."""

examples/pde.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ def execute(nx, ny, plot, plot_fname, throughput, tol, max_iters, warmup_iters,
218218
# If we're testing throughput, run only the prescribed number of iterations.
219219
if throughput:
220220
if use_legate:
221-
p_sol, iters = linalg.cg(A, bflat, rtol=tol, maxiter=max_iters, conv_test_iters=max_iters)
221+
p_sol, iters = linalg.cg(
222+
A, bflat, rtol=tol, maxiter=max_iters, conv_test_iters=max_iters
223+
)
222224
else:
223225
p_sol, iters = linalg.cg(A, bflat, rtol=tol, maxiter=max_iters)
224226
else:

legate_sparse/coverage.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ def should_wrap(obj: object) -> bool:
4343

4444

4545
class AnyCallable(Protocol):
46-
def __call__(self, *args: Any, **kwargs: Any) -> Any:
47-
...
46+
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
4847

4948

5049
def wrap(func: AnyCallable) -> Any:

legate_sparse/module.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
def _is_sparse_matrix(obj) -> bool:
6060
return any((isinstance(obj, csr_array), isinstance(obj, dia_array)))
6161

62+
6263
def isspmatrix(obj) -> bool:
6364
"""Check if an object is a legate sparse matrix.
6465

scripts/memlog_analysis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
1717
# Parse the log file
1818
allocations = parse_memlog('memlog.txt')
19-
19+
2020
# Export to CSV
2121
export_to_csv(allocations, 'memory_analysis.csv')
22-
22+
2323
# Create visualizations (requires pandas, matplotlib, seaborn)
2424
visualize_allocations(allocations)
2525
""" # noqa: W293

0 commit comments

Comments
 (0)