facebook pixelCodiga Analysis Python Rules, severity error , category error prone
BACK TO LIST

Python rules

The Codiga Static Analysis engine is powered by the best open-source tools to check your Python code. Make sure your code does not have any security issues and follow design and other best practices. Automate your code reviews today and merge with confidence with Codiga.

C0321

Error prone
Error

More than one statement on a single line

Learn more

C1801

Error prone
Error

Use len() without explicit argument

E0102

Error prone
Error

Detect functions that already exist

E0103

Error prone
Error

break or continue used outside a loop

E0104

Error prone
Error

Return outside function

E0105

Error prone
Error

The yield keyword is used outside a function

E0107

Error prone
Error

Use of operator that does not exist

E0110

Error prone
Error

Abstract class instantiation attempt

E0111

Error prone
Error

Bad argument passed to reversed()

E0117

Error prone
Error

A nonlocal variable does not have an attached name somewhere in the parent scopes.

E0237

Error prone
Error

Assigning an attribute not defined in the class slots

E0239

Error prone
Error

Detect class that inherit non-classes

E0242

Error prone
Error

Value conflict with __slots__

E0301

Error prone
Error

__iter__ returns non-iterator

E0302

Error prone
Error

The special method __int__ should have 0 parameter

E0603

Error prone
Error

Undefined variable name referenced in __all\__

E0604

Error prone
Error

Invalid object referenced in __all__

E0633

Error prone
Error

Attempting to unpack a non-sequence

E0704

Error prone
Error

The raise statement is not inside an except clause

E0710

Error prone
Error

Raising a new style class which doesn't inherit from BaseException

E0711

Error prone
Error

NotImplemented raised and should raise NotImplementedError instead

E1003

Error prone
Error

Another argument than the current class is given as first argument of the super builtin

E1125

Error prone
Error

Missing mandatory keyword argument in function call

E1126

Error prone
Error

Sequence type is indexed with an invalid type

E1129

Error prone
Error

Context manager doesn't implement __enter__ and __exit__

E1130

Error prone
Error

Unary operand is used on an object which does not support this type of operation.

E1132

Error prone
Error

Got multiple values for keyword argument in function call

E1134

Error prone
Error

Non-mapping value is used in a mapping context

E1136

Error prone
Error

Value is unsubscriptable

E1139

Error prone
Error

Invalid metaclass used

E1307

Error prone
Error

Incorrect format string

E1310

Error prone
Error

The argument to a str.{l,r,}strip call contains a duplicate character

R0123

Error prone
Error

Invalid literal comparison

R1707

Error prone
Error

Misplacing comma that creates a tuple

W0104

Error prone
Error

Statement have no effect

W0124

Error prone
Error

With statement returns multiple values

W0126

Error prone
Error

Conditional statement with potentially wrong function or method call due to missing parentheses

W0632

Error prone
Error

Possible unbalanced tuple unpacking with sequence

W1116

Error prone
Error

Argument of isinstance is not a type

W1302

Error prone
Error

Invalid format string

W1303

Error prone
Error

Missing format() argument key

W1403

Error prone
Error

Implicit string concatenation found in list

R1727

Error prone
Error

Boolean value has always the same value

E1143

Error prone
Error

Member is unhashable