Skip to content

Commit ecd0a83

Browse files
committed
Fix linting
1 parent 51a5201 commit ecd0a83

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

dask_cuda/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def cuda():
113113
type=int,
114114
default=0,
115115
help="""Set the cuDF spilling statistics level. This option has no effect if
116-
`--enable-cudf-spill` is not specified."""
116+
`--enable-cudf-spill` is not specified.""",
117117
)
118118
@click.option(
119119
"--rmm-pool-size",

dask_cuda/plugins.py

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def __init__(self, spill, spill_stats):
2222
def setup(self, worker=None):
2323
try:
2424
import cudf
25+
2526
cudf.set_option("spill", self.spill)
2627
cudf.set_option("spill_stats", self.spill_stats)
2728
except ImportError:

dask_cuda/tests/test_dask_cuda_worker.py

+5-10
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,13 @@ def test_cudf_spill_disabled(loop): # noqa: F811
249249
assert wait_workers(client, n_gpus=get_n_gpus())
250250

251251
cudf_spill = client.run(
252-
cudf.get_option, "spill",
252+
cudf.get_option,
253+
"spill",
253254
)
254255
for v in cudf_spill.values():
255256
assert v is False
256257

257-
cudf_spill_stats = client.run(
258-
cudf.get_option, "spill_stats"
259-
)
258+
cudf_spill_stats = client.run(cudf.get_option, "spill_stats")
260259
for v in cudf_spill_stats.values():
261260
assert v == 0
262261

@@ -281,15 +280,11 @@ def test_cudf_spill(loop): # noqa: F811
281280
with Client("127.0.0.1:9369", loop=loop) as client:
282281
assert wait_workers(client, n_gpus=get_n_gpus())
283282

284-
cudf_spill = client.run(
285-
cudf.get_option, "spill"
286-
)
283+
cudf_spill = client.run(cudf.get_option, "spill")
287284
for v in cudf_spill.values():
288285
assert v is True
289286

290-
cudf_spill_stats = client.run(
291-
cudf.get_option, "spill_stats"
292-
)
287+
cudf_spill_stats = client.run(cudf.get_option, "spill_stats")
293288
for v in cudf_spill_stats.values():
294289
assert v == 2
295290

dask_cuda/tests/test_local_cuda_cluster.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -509,13 +509,15 @@ async def test_cudf_spill_disabled():
509509
) as cluster:
510510
async with Client(cluster, asynchronous=True) as client:
511511
cudf_spill = await client.run(
512-
cudf.get_option, "spill",
512+
cudf.get_option,
513+
"spill",
513514
)
514515
for v in cudf_spill.values():
515516
assert v is False
516517

517518
cudf_spill_stats = await client.run(
518-
cudf.get_option, "spill_stats",
519+
cudf.get_option,
520+
"spill_stats",
519521
)
520522
for v in cudf_spill_stats.values():
521523
assert v == 0
@@ -532,13 +534,15 @@ async def test_cudf_spill():
532534
) as cluster:
533535
async with Client(cluster, asynchronous=True) as client:
534536
cudf_spill = await client.run(
535-
cudf.get_option, "spill",
537+
cudf.get_option,
538+
"spill",
536539
)
537540
for v in cudf_spill.values():
538541
assert v is True
539542

540543
cudf_spill_stats = await client.run(
541-
cudf.get_option, "spill_stats",
544+
cudf.get_option,
545+
"spill_stats",
542546
)
543547
for v in cudf_spill_stats.values():
544548
assert v == 2

0 commit comments

Comments
 (0)