Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,6 @@ jobs:
cipip install basedpyright
basedpyright

pylint:
name: Pylint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: "Main Script"
run: |
USE_CONDA_BUILD=1
EXTRA_INSTALL="pyvisfile scipy matplotlib"
curl -L -O https://tiker.net/ci-support-v0
. ci-support-v0
build_py_project
run_pylint "$(basename $GITHUB_REPOSITORY)" examples/*.py

docs:
name: Documentation
runs-on: ubuntu-latest
Expand Down
12 changes: 0 additions & 12 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,6 @@ Ruff:
except:
- tags

Pylint:
script:
- EXTRA_INSTALL="pybind11 numpy mako scipy matplotlib pyvisfile mpi4py"
- curl -L -O https://tiker.net/ci-support-v0
- . ci-support-v0
- build_py_project
- run_pylint "$(get_proj_name)" examples/*.py
tags:
- python3
except:
- tags

Downstream:
parallel:
matrix:
Expand Down
8 changes: 0 additions & 8 deletions .pylintrc-local.yml

This file was deleted.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ type = [
"optype"
]
lint = [
"pylint",
# https://github.com/astral-sh/ruff/issues/16943
"ruff!=0.11.1,!=0.11.2",
]
Expand Down
2 changes: 1 addition & 1 deletion sumpy/expansion/level_to_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, tol, extra_order=0):
self.extra_order = extra_order

def __call__(self, kernel, kernel_args, tree, level):
from pyfmmlib import ( # pylint: disable=no-name-in-module
from pyfmmlib import (
h2dterms,
h3dterms,
l2dterms,
Expand Down
2 changes: 1 addition & 1 deletion sumpy/point_calculus.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def basis(self) -> Sequence[Callable[[Array2D[np.floating]], Array1D[np.floating
a high-order interpolation basis on the :py:attr:`points`.
"""

from scipy.special import eval_chebyt # pylint: disable=no-name-in-module
from scipy.special import eval_chebyt

from pytools import indices_in_shape

Expand Down
4 changes: 2 additions & 2 deletions sumpy/symbolic.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,10 @@ class Hankel1(_BesselOrHankel):
_SympyHankel1 = Hankel1

if not TYPE_CHECKING and USE_SYMENGINE:
def BesselJ(*args): # noqa: N802 # pylint: disable=function-redefined
def BesselJ(*args): # noqa: N802
return sym.sympify(_SympyBesselJ(*args))

def Hankel1(*args): # noqa: N802 # pylint: disable=function-redefined
def Hankel1(*args): # noqa: N802
return sym.sympify(_SympyHankel1(*args))

# vim: fdm=marker
6 changes: 3 additions & 3 deletions sumpy/test/test_cse.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def test_cse_not_possible():
assert reduced == [x + y]
# issue 6329
eq = (
meijerg((1, 2), (y, 4), (5,), [], x) # pylint: disable=possibly-used-before-assignment
meijerg((1, 2), (y, 4), (5,), [], x)
+ meijerg((1, 3), (y, 4), (5,), [], x))
assert cse(eq) == ([], [eq])

Expand All @@ -177,7 +177,7 @@ def test_subtraction_opt():
# Make sure subtraction is optimized.
e = (x - y)*(z - y) + sym.exp((x - y)*(z - y))
substs, reduced = cse(
[e], optimizations=[(cse_opts.sub_pre, cse_opts.sub_post)]) # pylint: disable=possibly-used-before-assignment
[e], optimizations=[(cse_opts.sub_pre, cse_opts.sub_post)])
assert substs == [(x0, (x - y)*(y - z))]
assert reduced == [-x0 + sym.exp(-x0)]
e = -(x - y)*(z - y) + sym.exp(-(x - y)*(z - y))
Expand Down Expand Up @@ -341,7 +341,7 @@ def test_issue_6169():
assert cse(r) == ([], [r])
# and a check that the right thing is done with the new
# mechanism
assert sub_post(sub_pre((-x - y)*z - x - y)) == -z*(x + y) - x - y # pylint: disable=possibly-used-before-assignment
assert sub_post(sub_pre((-x - y)*z - x - y)) == -z*(x + y) - x - y

# }}}

Expand Down
4 changes: 2 additions & 2 deletions sumpy/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def set_matplotlib_limits(self):
def show_vector_in_mayavi(self, fld, do_show=True, **kwargs):
c = self.points

from mayavi import mlab # pylint: disable=import-error
from mayavi import mlab

mlab.quiver3d(c[0], c[1], c[2], fld[0], fld[1], fld[2],
**kwargs)
Expand All @@ -193,7 +193,7 @@ def show_scalar_in_mayavi(self, fld, max_val=None, **kwargs):
nd_points = self.nd_points.squeeze()[self._get_nontrivial_dims()]
squeezed_fld = fld.squeeze()

from mayavi import mlab # pylint: disable=import-error
from mayavi import mlab
mlab.surf(nd_points[0], nd_points[1], squeezed_fld, **kwargs)

# vim: foldmethod=marker
Loading