Showing 591 of 591 total issues
Import outside toplevel (pytest) Open
import pytest
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
Used when pylint has been unable to import a module.
Missing function or method docstring Open
def derivative_arctanh(n):
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
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:
- Read upRead up
- Exclude checks
Used when a method or function is too complex based on McCabe Complexity Cyclomatic
Too few public methods (1/2) Open
class BenchmarkFunction(object):
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
Used when a function or method has no docstring. Some special methods like init do not require a docstring.