facebook pixelCodiga Analysis Python Rules, 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

E1102

Error prone
Critical

Object is not callable

E1121

Error prone
Critical

Too many arguments for method call

E1123

Error prone
Critical

Unexpected keyword argument in method call

E1124

Error prone
Critical

Argument passed by position and keyword in method call

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

E1133

Error prone
Critical

Non-iterable value used in an iterating context

E1134

Error prone
Error

Non-mapping value is used in a mapping context

E1135

Error prone
Critical

Value doesn't support membership test

E1136

Error prone
Error

Value is unsubscriptable

E1139

Error prone
Error

Invalid metaclass used

E1141

Error prone
Critical

Invalid iteration over dictionary items

E1205

Error prone
Critical

Too many arguments for logging format string

E1206

Error prone
Critical

Not enough arguments in logging call

E1305

Error prone
Warning

Too many arguments for format string

E1306

Error prone
Critical

Not enough arguments for format string

E1307

Error prone
Error

Incorrect format string

E1310

Error prone
Error

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

I1101

Error prone
Warning

Variable is accessed for non-existent member of C extension

R0123

Error prone
Error

Invalid literal comparison

R1707

Error prone
Error

Misplacing comma that creates a tuple

W0101

Error prone
Critical

Unreachable code

W0104

Error prone
Error

Statement have no effect

W0109

Error prone
Critical

Duplicate key in dictionary

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

W0129

Error prone
Warning

Assert statement has a string literal as its first argument and the assert will never fail.

W0143

Error prone
Warning

Comparing against a callable (parenthesis needed)

W0602

Error prone
Warning

Global variable used but not assigned

W0614

Error prone
Warning

Unused import from another module

W0632

Error prone
Error

Possible unbalanced tuple unpacking with sequence

W0641

Error prone
Warning

Variable defined but not used

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

W1305

Error prone
Warning

Invalid combined format specification

W1403

Error prone
Error

Implicit string concatenation found in list

W0238

Error prone
Warning

Unused private member

C1803

Error prone
Warning

Make use of implicit boolean

R1727

Error prone
Error

Boolean value has always the same value

W1310

Error prone
Informational

String that does not have any interpolation variables, in which case it can be either a normal string without formatting or a bug in the code.

W1514

Error prone
Warning

Using open without explicitly specifying an encoding

R1730

Error prone
Warning

Use the min builtin instead of using an if condition

W0199

Error prone
Warning

Assert called on a 2-item-tuple.

C3001

Error prone
Warning

Lambda expression assigned to a variable. Define a function using the "def" keyword instead.

R0022

Error prone
Warning

Useless option value.

W0012

Error prone
Warning

Unknown option value.

W0245

Error prone
Critical

Super call without brackets.

C2403

Error prone
Warning

Import a module with non-ASCII characters

E1143

Error prone
Error

Member is unhashable