Showing 591 of 591 total issues
Missing function or method docstring Open
def flat(self, index):
- Read upRead up
- Exclude checks
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))
- 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
.
Number of parameters was 2 in 'LogRule._vstack' and is now 3 in overriding 'LogJacobianRule._vstack' method Open
def _vstack(self, sequence, steps):
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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):
- 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 c_max(x, y):
- 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 c_min(x, y):
- 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 sin(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 cot(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 few public methods (1/2) Open
class JacobianDifferenceFunctions(object):
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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]
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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):
- Read upRead up
- Exclude checks
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,
- 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.
TODO: Check correctness Open
# TODO: Check correctness
- Read upRead up
- Exclude checks
Used when a warning note as FIXME or XXX is detected.