Detected the use of one of the C-style pre/post increment or decrement operators, --
and ++
, which don't exist in Python.
Use the +=
or -=
operators instead.
Debuggers should only be used temporarily and locally. It is highly recommended to remove debug statements in checked-in code.
The class is using, as a metaclass, something which might be invalid for using as a metaclass.
continue
statement outside of a while
or for
loop FLK-F702continue
statement cannot not be used outside a loop. This will raise a SyntaxError
Logging statement format string shall not terminate before the end of a conversion specifier.
The function was invoked with more than one values for a keyword argument. This is an error.
BaseException
PYL-E0710New-style classes raised must inherit from BaseException
.
An abstract class with abc.ABCMeta
as metaclass has abstract methods and is instantiated.
This will result in a TypeError
as Python can't instantiate abstract class with abstract methods.
A star expression is being used as a starred assignment target.
In order to do that, the starred assignment target must be in a list or tuple,
otherwise Python will throw a SyntaxError
.
init
method converted to generator PYL-E0100The __init__()
method is required to return nothing, but a yield
statement in its body was detected. This will raise a TypeError
.
Local variables should be defined before they are referenced.
A global variable is being accessed in a local scope before it has been defined with a global
statement.
Doing so will raise a SyntaxError
.
Loop variables should not redefine the name of modules that are imported.
All dictionary keys should be unique.
The format string was terminated before the end of a conversion specifier. It is recommended to look again and verify if the conversion specifier is given.
Deletion is supported only for items which implement __delitem__
.
super()
call PYL-E1003The first argument to the super()
function must be the current class.
raw_input
built-in detected PYL-W1609The built-in function being accessed has been removed from Python 3. Please consult the documentation.
A line is indented when it shouldn’t be. Usually this will mean that multiple lines need to be indented at the same level.
The format()
function is called on an object that is not a string. This is an error. Incorrect code: