pbrod/numdifftools

View on GitHub

Showing 591 of 591 total issues

Missing function or method docstring
Open

    def flat(self, index):
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.

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

                'Parity must be 0, 1, 2, 3, 4, 5 or 6! ({0:d})'.format(parity))

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.

Number of parameters was 2 in 'LogRule._vstack' and is now 3 in overriding 'LogJacobianRule._vstack' method
Open

    def _vstack(self, sequence, steps):

Used when a method has a different number of arguments than in the implemented interface or in an overridden method. Extra arguments with default values are ignored.

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

            df = derivative(f, method=method)

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

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

    mm = n // 2 + 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...).

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

def _check_fft(m1, m2, check_degenerate=True):
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...).

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

    def _check_convergence(self, i, z0, r, m, bn):
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...).

Missing function or method docstring
Open

def c_max(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 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 sin(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 cot(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.

Too few public methods (1/2)
Open

class JacobianDifferenceFunctions(object):

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

Too few public methods (0/2)
Open

class HessdiagDifferenceFunctions(object):

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

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.

Instance of 'Hessian' has no '_difference_functions' member
Open

                  cls._difference_functions._central_even]
Severity: Critical
Found in src/numdifftools/profile_numdifftools.py by pylint

Used when a variable is accessed for a nonexistent member.

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

class BasicMaxStepGenerator(object):

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

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

def _poor_convergence(z, r, f, bn, mvec):
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...).

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

    def __call__(self, z0=0):
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...).

Consider using '{complex: approx_hess_cs, forward: approx_hess1, backward: _approx_hess1_backward, ... }' instead of a call to 'dict'.
Open

    _callables = dict(complex=approx_hess_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.

TODO: Check correctness
Open

        # TODO: Check correctness
Severity: Minor
Found in src/numdifftools/multicomplex.py by pylint

Used when a warning note as FIXME or XXX is detected.

Severity
Category
Status
Source
Language