Skip to content

Commit 67c9641

Browse files
Apply ruff rule RUF100
RUF100 Unused `noqa` directive
1 parent 874f093 commit 67c9641

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

distributed/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2368,7 +2368,7 @@ async def _gather(self, futures, errors="raise", direct=None, local_worker=None)
23682368
"Cannot gather Futures created by another client. "
23692369
f"These are the {len(mismatched_futures)} (out of {len(futures)}) "
23702370
f"mismatched Futures and their client IDs (this client is {self.id}): "
2371-
f"{ {f: f.client.id for f in mismatched_futures} }" # noqa: E201, E202
2371+
f"{ {f: f.client.id for f in mismatched_futures} }"
23722372
)
23732373
keys = [future.key for future in future_set]
23742374
bad_data = dict()

distributed/protocol/tests/test_pickle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def test_pickle_by_value_when_registered():
203203
module = f"{d}/mymodule.py"
204204
with open(module, "w") as f:
205205
f.write("def myfunc(x):\n return x + 1")
206-
import mymodule # noqa
206+
import mymodule
207207

208208
assert dumps(mymodule.myfunc) == pickle.dumps(
209209
mymodule.myfunc, protocol=HIGHEST_PROTOCOL

distributed/tests/test_parse_stdout.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616

1717
# Note: test_timeout below ends with a whitespace!
18-
# flake8: noqa: W291
1918
stdout = """
2019
Unrelated row, must ignore
2120
distributed/tests/test1.py::test_fail FAILED [ 10%]

distributed/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3233,7 +3233,7 @@ async def rmm_metric(worker):
32333233
# avoid importing cuDF unless explicitly enabled
32343234
if dask.config.get("distributed.diagnostics.cudf"):
32353235
try:
3236-
import cudf as _cudf # noqa: F401
3236+
import cudf as _cudf
32373237
except Exception:
32383238
pass
32393239
else:

0 commit comments

Comments
 (0)