pbrod/numdifftools

View on GitHub

Showing 591 of 591 total issues

Missing function or method docstring
Open

def c_min(x, y):
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.

Missing function or method docstring
Open

    def logaddexp2(self, other):
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.

Missing function or method docstring
Open

    def sec(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 = np.cosh(self.z1) * np.cos(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...).

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

    cProfile.run("main()", "{}.profile".format(__file__))

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.

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

        rs = []
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...).

Too few public methods (1/2)
Open

class Taylor(object):
Severity: Info
Found in src/numdifftools/fornberg.py by pylint

Used when class has too few public methods, so be sure it's really worth it.

Consider using '{complex: approx_fprime_cs, central: partial(approx_fprime, centered=True), ... }' instead of a call to 'dict'.
Open

    _callables = dict(complex=approx_fprime_cs,
Severity: Info
Found in src/numdifftools/nd_statsmodels.py by pylint

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

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

        self.z1 = np.asanyarray(z1, 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 shape(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.

Class 'LogRule' inherits from object, can be safely removed from bases in python3
Open

class LogRule(object):

Used when a class inherit from object, which under python3 is implicit, hence can be safely removed from bases.

Too many arguments (10/5)
Open

    def __init__(self, base_step=None, step_ratio=None, num_steps=None, step_nom=None,

Used when a function or method takes too many arguments.

Consider using Python 3 style super() without arguments
Open

        super(MaxStepGenerator,

Emitted when calling the super() builtin with the current class and instance. On Python 3 these arguments are the default and they can be omitted.

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

    f0 = f(*(x,) + args, **kwargs)
Severity: Info
Found in src/numdifftools/nd_statsmodels.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.

Missing function or method docstring
Open

    def imag12(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 z2 doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern)
Open

        z2 = np.array([cls.z2 for cls in result.ravel()])
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...).

Consider using '{backward: 1, forward: 1}' instead of a call to 'dict'.
Open

        return dict(backward=1, forward=1).get(self.method, 2)

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.

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...).

Severity
Category
Status
Source
Language