Skip to content

Commit d619abe

Browse files
committed
Enable pylint for dpnp.special submodule
1 parent 6f6d5e7 commit d619abe

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ repos:
113113
"--disable=redefined-builtin",
114114
"--disable=unused-wildcard-import"
115115
]
116-
files: '^dpnp/(dpnp_iface.*|fft|linalg|dpnp_array)'
116+
files: '^dpnp/(dpnp_iface.*|fft|linalg|special|dpnp_array)'
117117
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
118118
rev: v2.15.0
119119
hooks:

dpnp/dpnp_iface_bitwise.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
3838
"""
3939

40-
# pylint: disable=protected-access
40+
# pylint: disable=duplicate-code
4141
# pylint: disable=no-name-in-module
42+
# pylint: disable=protected-access
4243

4344
import dpctl.tensor._tensor_elementwise_impl as ti
4445
import numpy

dpnp/special/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,21 @@
2424
# THE POSSIBILITY OF SUCH DAMAGE.
2525
# *****************************************************************************
2626

27+
"""
28+
``dpnp.special``
29+
================
30+
31+
The submodule provides a large collection of mathematical functions that are
32+
widely used in science and engineering. It includes special functions of
33+
mathematical physics (e.g., Bessel, elliptic, gamma, hypergeometric), as well
34+
as standard functions like `erf`, `sinc`, and `logit`.
35+
36+
The functions in the submodule invokes VM implementation from pybind11
37+
extension above OneMKL VM if possible or uses a dedicated SYCL kernel, or,
38+
alternatively, is implemented through a subset of python calls.
39+
40+
"""
41+
2742
from ._erf import (
2843
erf,
2944
)

dpnp/special/_erf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
3737
"""
3838

39+
# pylint: disable=protected-access
40+
3941
import dpnp.backend.extensions.ufunc._ufunc_impl as ufi
4042
from dpnp.dpnp_algo.dpnp_elementwise_common import DPNPUnaryFunc
4143

@@ -63,7 +65,7 @@ def __init__(
6365
mkl_impl_fn=mkl_impl_fn,
6466
)
6567

66-
def __call__(self, x, out=None):
68+
def __call__(self, x, out=None): # pylint: disable=signature-differs
6769
return super().__call__(x, out=out)
6870

6971

0 commit comments

Comments
 (0)