From 287e8f69303a3cf98758cb9c320236eff3cc305c Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sun, 3 Jul 2022 11:31:06 -0500 Subject: [PATCH] Check, add ignores for bugbear B023 --- setup.cfg | 3 +++ test/test_distributed.py | 2 +- test/test_pytato.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index dd4ef87..556caf3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,6 +6,9 @@ inline-quotes = " docstring-quotes = """ multiline-quotes = """ +per-file-ignores = + examples/advection.py:B023 + # enable-flake8-bugbear [mypy] diff --git a/test/test_distributed.py b/test/test_distributed.py index 3970c40..c7604d6 100644 --- a/test/test_distributed.py +++ b/test/test_distributed.py @@ -153,7 +153,7 @@ def _do_test_distributed_execution_random_dag(ctx_factory): nonlocal comm_tag comm_tag += 1 - tag = (comm_tag, _RandomDAGTag) + tag = (comm_tag, _RandomDAGTag) # noqa: B023 inner = make_random_dag(rdagc) return staple_distributed_send( diff --git a/test/test_pytato.py b/test/test_pytato.py index 1545384..c6d3b1e 100755 --- a/test/test_pytato.py +++ b/test/test_pytato.py @@ -817,7 +817,7 @@ def test_pickling_and_unpickling_is_equal(): def make_dws_placeholder(expr): if isinstance(expr, pt.DataWrapper): - return pt.make_placeholder(vng("_pt_ph"), + return pt.make_placeholder(vng("_pt_ph"), # noqa: B023 expr.shape, expr.dtype) else: return expr -- GitLab