Skip to content

Commit 2fef582

Browse files
committed
Drop pylint
1 parent 28b3568 commit 2fef582

File tree

9 files changed

+9
-44
lines changed

9 files changed

+9
-44
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,6 @@ jobs:
4646
cipip install basedpyright
4747
basedpyright
4848
49-
pylint:
50-
name: Pylint
51-
runs-on: ubuntu-latest
52-
steps:
53-
- uses: actions/checkout@v5
54-
- name: "Main Script"
55-
run: |
56-
USE_CONDA_BUILD=1
57-
EXTRA_INSTALL="pyvisfile scipy matplotlib"
58-
curl -L -O https://tiker.net/ci-support-v0
59-
. ci-support-v0
60-
build_py_project
61-
run_pylint "$(basename $GITHUB_REPOSITORY)" examples/*.py
62-
6349
docs:
6450
name: Documentation
6551
runs-on: ubuntu-latest

.gitlab-ci.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -128,18 +128,6 @@ Ruff:
128128
except:
129129
- tags
130130

131-
Pylint:
132-
script:
133-
- EXTRA_INSTALL="pybind11 numpy mako scipy matplotlib pyvisfile mpi4py"
134-
- curl -L -O https://tiker.net/ci-support-v0
135-
- . ci-support-v0
136-
- build_py_project
137-
- run_pylint "$(get_proj_name)" examples/*.py
138-
tags:
139-
- python3
140-
except:
141-
- tags
142-
143131
Downstream:
144132
parallel:
145133
matrix:

.pylintrc-local.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ type = [
4949
"optype"
5050
]
5151
lint = [
52-
"pylint",
5352
# https://github.com/astral-sh/ruff/issues/16943
5453
"ruff!=0.11.1,!=0.11.2",
5554
]

sumpy/expansion/level_to_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(self, tol, extra_order=0):
5151
self.extra_order = extra_order
5252

5353
def __call__(self, kernel, kernel_args, tree, level):
54-
from pyfmmlib import ( # pylint: disable=no-name-in-module
54+
from pyfmmlib import (
5555
h2dterms,
5656
h3dterms,
5757
l2dterms,

sumpy/point_calculus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def basis(self) -> Sequence[Callable[[Array2D[np.floating]], Array1D[np.floating
149149
a high-order interpolation basis on the :py:attr:`points`.
150150
"""
151151

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

154154
from pytools import indices_in_shape
155155

sumpy/symbolic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,10 @@ class Hankel1(_BesselOrHankel):
394394
_SympyHankel1 = Hankel1
395395

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

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

403403
# vim: fdm=marker

sumpy/test/test_cse.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def test_cse_not_possible():
151151
assert reduced == [x + y]
152152
# issue 6329
153153
eq = (
154-
meijerg((1, 2), (y, 4), (5,), [], x) # pylint: disable=possibly-used-before-assignment
154+
meijerg((1, 2), (y, 4), (5,), [], x)
155155
+ meijerg((1, 3), (y, 4), (5,), [], x))
156156
assert cse(eq) == ([], [eq])
157157

@@ -177,7 +177,7 @@ def test_subtraction_opt():
177177
# Make sure subtraction is optimized.
178178
e = (x - y)*(z - y) + sym.exp((x - y)*(z - y))
179179
substs, reduced = cse(
180-
[e], optimizations=[(cse_opts.sub_pre, cse_opts.sub_post)]) # pylint: disable=possibly-used-before-assignment
180+
[e], optimizations=[(cse_opts.sub_pre, cse_opts.sub_post)])
181181
assert substs == [(x0, (x - y)*(y - z))]
182182
assert reduced == [-x0 + sym.exp(-x0)]
183183
e = -(x - y)*(z - y) + sym.exp(-(x - y)*(z - y))
@@ -341,7 +341,7 @@ def test_issue_6169():
341341
assert cse(r) == ([], [r])
342342
# and a check that the right thing is done with the new
343343
# mechanism
344-
assert sub_post(sub_pre((-x - y)*z - x - y)) == -z*(x + y) - x - y # pylint: disable=possibly-used-before-assignment
344+
assert sub_post(sub_pre((-x - y)*z - x - y)) == -z*(x + y) - x - y
345345

346346
# }}}
347347

sumpy/visualization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def set_matplotlib_limits(self):
168168
def show_vector_in_mayavi(self, fld, do_show=True, **kwargs):
169169
c = self.points
170170

171-
from mayavi import mlab # pylint: disable=import-error
171+
from mayavi import mlab
172172

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

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

199199
# vim: foldmethod=marker

0 commit comments

Comments
 (0)