pbrod/numdifftools

View on GitHub

Showing 591 of 591 total issues

Formatting a regular string which could be a f-string
Open

""".format(PACKAGE_NAME, '='*len(PACKAGE_NAME)), """{1}
Severity: Info
Found in build_package.py by pylint

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Using open without explicitly specifying an encoding
Open

        with open(filename, "w") as fid:
Severity: Minor
Found in build_package.py by pylint

It is better to specify an encoding when opening documents. Using the system default implicitly can create problems on other operating systems. See https://peps.python.org/pep-0597/

Variable name P doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

        P = 1
Severity: Info
Found in src/numdifftools/nd_algopy.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Variable name d doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

        d, n = 2 + 1, x.size
Severity: Info
Found in src/numdifftools/nd_algopy.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Variable name z0 doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

        z0 = self.fun(y, *args, **kwds)
Severity: Info
Found in src/numdifftools/nd_algopy.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Variable name dm doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

            dm = 7

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Consider using '{multicomplex: 1.06, complex: 1.06 + c}' instead of a call to 'dict'.
Open

    return (dict(multicomplex=1.06, complex=1.06 + c).get(method, 2.5) +

Emitted when using dict() to create a dictionary instead of a literal '{ ... }'. The literal is faster as it avoids an additional function call.

Unable to import 'scipy.special'
Open

from scipy.special import factorial
Severity: Critical
Found in src/numdifftools/fornberg.py by pylint

Used when pylint has been unable to import a module.

Variable name m1 doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

        m1 = np.max(np.abs(bnc[:m // 2]))
Severity: Info
Found in src/numdifftools/fornberg.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Variable name m1 doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

            m1, m2 = self._get_m1_m2(bn, m)
Severity: Info
Found in src/numdifftools/fornberg.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Attribute name z2 doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

        self.z2 = np.asanyarray(z2, dtype=dtype)
Severity: Info
Found in src/numdifftools/multicomplex.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Missing function or method docstring
Open

    def real(self):
Severity: Info
Found in src/numdifftools/multicomplex.py by pylint

Used when a function or method has no docstring. Some special methods like init do not require a docstring.

Variable name z1 doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

        z1, z2 = self.z1, self.z2
Severity: Info
Found in src/numdifftools/multicomplex.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Unable to import 'numpy'
Open

import numpy as np
Severity: Critical
Found in src/numdifftools/profile_numdifftools.py by pylint

Used when pylint has been unable to import a module.

Formatting a regular string which could be a f-string
Open

        return """{0!s}(z1={1!s}, z2={2!s})""".format(name, str(self.z1),
Severity: Info
Found in src/numdifftools/multicomplex.py by pylint

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Missing function or method docstring
Open

    def cosh(self):
Severity: Info
Found in src/numdifftools/multicomplex.py by pylint

Used when a function or method has no docstring. Some special methods like init do not require a docstring.

Consider using '{central: 2, central2: 2, complex: complex_step, multicomplex: 2, ... }' instead of a call to 'dict'.
Open

        return dict(central=2,

Emitted when using dict() to create a dictionary instead of a literal '{ ... }'. The literal is faster as it avoids an additional function call.

Formatting a regular string which could be a f-string
Open

        first = '_{0!s}'.format(self.method)

Used when we detect a string that is being formatted with format() or % which could potentially be a f-string. The use of f-strings is preferred. Requires Python 3.6 and py-version >= 3.6.

Argument name fx doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

def fd_derivative(fx, x, n=1, m=2):
Severity: Info
Found in src/numdifftools/fornberg.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Variable name du doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

    du = np.zeros_like(fx)
Severity: Info
Found in src/numdifftools/fornberg.py by pylint

Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).

Severity
Category
Status
Source
Language