Showing 591 of 591 total issues
Missing function or method docstring Open
def compute_gradients(gradient_funs, problem_sizes):
- 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 run_gradient_and_hessian_benchmarks(gradient_funs, hessian_funs,
- Read upRead up
- Exclude checks
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 EpsAlg(object):
- Read upRead up
- Exclude checks
Used when class has too few public methods, so be sure it's really worth it.
Missing function or method docstring Open
def coth(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.
Unnecessarily calls dunder method __pow__. Use ** operator or pow built-in function. Open
return self.__pow__(0.5)
- 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 log2(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 arccosh(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 z2
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...).
Missing function or method docstring Open
def arg_c(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.
Too many public methods (44/20) Open
class Bicomplex(object):
- Read upRead up
- Exclude checks
Used when class has too many public methods, try to reduce this to get a simpler (and so easier to use) class.
Consider using '{cosh
: derivative_cosh, cos
: derivative_cos, sin
: derivative_sin, ... }' instead of a call to 'dict'. Open
f_dic = dict(cosh=derivative_cosh,
- Read upRead up
- Exclude checks
Emitted when using dict() to create a dictionary instead of a literal '{ ... }'. The literal is faster as it avoids an additional function call.
Consider using '{derivative
: 'Hessian diagonal', extra_parameter
: order : int, optionaln defines the order of the error term in the Taylor approximation used.n For 'central' and 'complex' methods, it must be an even number.
, ... }' instead of a call to 'dict'. Open
__doc__ = _CMN_DOC % dict(
- Read upRead up
- Exclude checks
Emitted when using dict() to create a dictionary instead of a literal '{ ... }'. The literal is faster as it avoids an additional function call.
Variable name t1
doesn't conform to '[a-z_][a-z0-9_]{2,30}$' pattern ('[a-z_][a-z0-9_]{2,30}$' pattern) Open
t1 = timer()
- 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 'matplotlib.pyplot' Open
import matplotlib.pyplot as plt
- Read upRead up
- Exclude checks
Used when pylint has been unable to import a module.
Formatting a regular string which could be a f-string Open
__doc__ = """
- Read upRead up
- Exclude checks
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
.
Consider using Python 3 style super() without arguments Open
super(CStepGenerator,
- 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.
Too few public methods (1/2) Open
class _Limit(object):
- Read upRead up
- Exclude checks
Used when class has too few public methods, so be sure it's really worth it.
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...).
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 = 1 + self.z1, self.z2
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Use 'from scipy import special' instead Open
import scipy.special as special
- Read upRead up
- Exclude checks
Emitted when a submodule of a package is imported and aliased with the same name, e.g., instead of import concurrent.futures as futures
use from concurrent import futures
.