diff --git a/pytential/linalg/skeletonization.py b/pytential/linalg/skeletonization.py index 619a6322f..e8234b905 100644 --- a/pytential/linalg/skeletonization.py +++ b/pytential/linalg/skeletonization.py @@ -143,7 +143,7 @@ def prg(): result = actx.zeros((cluster_index.nclusters,), dtype=waa.entry_dtype) from arraycontext import flatten - _, (waa_per_cluster,) = prg()(actx.queue, # pylint: disable=not-callable + _, (waa_per_cluster,) = prg()(actx.queue, waa=flatten(waa, actx), result=result, indices=cluster_index.indices, diff --git a/pytential/linalg/utils.py b/pytential/linalg/utils.py index 151b394b4..3ad5df5cc 100644 --- a/pytential/linalg/utils.py +++ b/pytential/linalg/utils.py @@ -336,7 +336,7 @@ def interp_decomp( if rank is not None and eps is not None: raise ValueError("providing both 'rank' and 'eps' is not supported") - import scipy.linalg.interpolative as sli # pylint:disable=no-name-in-module + import scipy.linalg.interpolative as sli if rank is None: k, idx, proj = sli.interp_decomp(A, eps) else: diff --git a/pytential/symbolic/pde/maxwell/__init__.py b/pytential/symbolic/pde/maxwell/__init__.py index f09dc2178..46f38b4d5 100644 --- a/pytential/symbolic/pde/maxwell/__init__.py +++ b/pytential/symbolic/pde/maxwell/__init__.py @@ -246,7 +246,7 @@ def curl_S(dens, k): F3 = (xyz_to_tangential(sym.n_cross(E1-E0) + 0.5*(mu0+mu1)*Mxyz)) # sign flip included - F4 = -sym.n_dot(mu1*H1-mu0*H0) + 0.5*(mu1+mu0)*u.rho_m # noqa pylint:disable=invalid-unary-operand-type + F4 = -sym.n_dot(mu1*H1-mu0*H0) + 0.5*(mu1+mu0)*u.rho_m return sym.flat_obj_array(F1, F2, F3, F4) diff --git a/pytential/symbolic/pde/scalar.py b/pytential/symbolic/pde/scalar.py index 47f93d159..a6600dd96 100644 --- a/pytential/symbolic/pde/scalar.py +++ b/pytential/symbolic/pde/scalar.py @@ -214,7 +214,7 @@ def representation(self, u, inv_sqrt_w_u = sym.cse(u/sqrt_w) if map_potentials is None: - def map_potentials(x): # pylint:disable=function-redefined + def map_potentials(x): return x kwargs["kernel_arguments"] = self.kernel_arguments @@ -351,7 +351,7 @@ def representation(self, u, laplace_s_inv_sqrt_w_u = sym.cse(sym.S(self.laplace_kernel, inv_sqrt_w_u)) if map_potentials is None: - def map_potentials(x): # pylint:disable=function-redefined + def map_potentials(x): return x kwargs["qbx_forced_limit"] = qbx_forced_limit @@ -505,7 +505,7 @@ def representation(self, sigma, """ if map_potentials is None: - def map_potentials(x): # pylint:disable=function-redefined + def map_potentials(x): return x def dv(knl): diff --git a/test/extra_int_eq_data.py b/test/extra_int_eq_data.py index 1f43baea4..8fe54d78d 100644 --- a/test/extra_int_eq_data.py +++ b/test/extra_int_eq_data.py @@ -156,7 +156,7 @@ def knl_sym_kwargs(self): def get_operator(self, ambient_dim): sign = +1 if self.side in [+1, "scat"] else -1 - knl = self.knl_class(ambient_dim) # noqa: pylint:disable=E1102 + knl = self.knl_class(ambient_dim) if self.bc_type == "dirichlet": from pytential.symbolic.pde.scalar import DirichletOperator @@ -268,7 +268,7 @@ class CurveTestCase(IntegralEquationTestCase): resolutions: List[int] = field(default_factory=lambda: [40, 50, 60]) def _curve_fn(self, t): - return self.curve_fn(t) # pylint:disable=not-callable + return self.curve_fn(t) def get_mesh(self, resolution, mesh_order): from meshmode.mesh.generation import make_curve_mesh diff --git a/test/test_linalg_skeletonization.py b/test/test_linalg_skeletonization.py index 346d13ee9..be559f930 100644 --- a/test/test_linalg_skeletonization.py +++ b/test/test_linalg_skeletonization.py @@ -357,7 +357,7 @@ def test_skeletonize_by_proxy(actx_factory, case, visualize=False): empirically determined (not too huge) :math:`c`. """ - import scipy.linalg.interpolative as sli # pylint:disable=no-name-in-module + import scipy.linalg.interpolative as sli sli.seed(42) actx = actx_factory() @@ -404,7 +404,7 @@ def test_skeletonize_by_proxy_convergence( accuracy of the skeletonization scales linearly with :math:`\epsilon_{id}` (the ID tolerance). """ - import scipy.linalg.interpolative as sli # pylint:disable=no-name-in-module + import scipy.linalg.interpolative as sli sli.seed(42) actx = actx_factory()