pbrod/numdifftools

View on GitHub

Showing 591 of 591 total issues

Import outside toplevel (pytest)
Open

    import pytest
Severity: Info
Found in src/numdifftools/__init__.py by pylint

Used when an import statement is used anywhere other than the module toplevel. Move this import to the top of the file.

Consider using Python 3 style super() without arguments
Open

        result = super(Gradient, self).__call__(np.atleast_1d(x).ravel(), *args, **kwds)
Severity: Info
Found in src/numdifftools/core.py by pylint

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.

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

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

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

Missing function or method docstring
Open

    def exp(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 arcsinh(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.

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

    def _arg_c(z1, 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/example_functions.py by pylint

Used when pylint has been unable to import a module.

Missing function or method docstring
Open

def derivative_arctanh(n):

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

Unable to import 'numpy'
Open

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

Used when pylint has been unable to import a module.

Consider using Python 3 style super() without arguments
Open

        return super(Hessdiag, self).__call__(np.atleast_1d(x), *args, **kwds)
Severity: Info
Found in src/numdifftools/core.py by pylint

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.

This 'tryexcept' is too complex. The McCabe rating is 16
Open

try:
Severity: Info
Found in src/numdifftools/profiletools.py by pylint

Used when a method or function is too complex based on McCabe Complexity Cyclomatic

Too few public methods (1/2)
Open

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

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

Unnecessarily calls dunder method __call__. Invoke instance directly.
Open

        return self.__call__(sequence, steps)
Severity: Info
Found in src/numdifftools/extrapolation.py by pylint

Used when a dunder method is manually called instead of using the corresponding function/method/operator.

Missing function or method docstring
Open

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

        J = Bicomplex(0, 1)
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 dddarccos(x):

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 derivative_cosh(n):

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

Consider using Python 3 style super() without arguments
Open

        super(Hessdiag, self).__init__(f, step=step, method=method, n=2, order=order, **options)
Severity: Info
Found in src/numdifftools/core.py by pylint

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.

Consider using Python 3 style super() without arguments
Open

        super(Hessian, self).__init__(f, step=step, method=method, order=order, **options)
Severity: Info
Found in src/numdifftools/core.py by pylint

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.

Missing function or method docstring
Open

    def arcsin(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.

Severity
Category
Status
Source
Language