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.

E0202

Safety
Error

Method has the same name as an attribute

Learn more

E0203

Safety
Error

Access to members before they are defined

E0306

Safety
Error

__repr__ does not return str

E0307

Safety
Critical

__str__ does not return str

E0309

Safety
Critical

__hash__ does not return an int

E0401

Safety
Error

Module that cannot be imported

E0402

Safety
Error

Attempted relative import beyond top-level package

E0601

Safety
Critical

Using variable before assignment

E0701

Safety
Warning

Bad except clauses order

E0702

Safety
Error

Raising int while only classes or instances are allowed

E0712

Safety
Critical

Catching an exception which doesn't inherit from Exception.

E1101

Safety
Critical

Detect members or attributes that do not exists

E1111

Safety
Critical

Assigning result of a function call with no return

E1120

Safety
Critical

No value for argument in function call

E1128

Safety
Critical

Assigning result of a function call that returns nothing but None.

E1137

Safety
Critical

Unsupported assignment operation

E1138

Safety
Critical

Unsupported delete operation

W0102

Safety
Error

Dangerous default value as argument

W0128

Safety
Error

Redeclared variable in assignment

W0601

Safety
Error

Global variable used but not defined

W0631

Safety
Error

Loop variable used outside a loop

W0711

Safety
Critical

Operation is raising exception

W1404

Safety
Error

Implicit string concatenation

W1508

Safety
Error

Invalid default value when getting the environment

W1509

Safety
Warning

Using preexec_fn keyword which may be unsafe in the presence of threads

E4702

Safety
Error

Iterated dict is being modified inside for loop body, iterate through a copy of it instead.

W4701

Safety
Critical

Iterated list is being modified inside for loop body

E4703

Safety
Critical

Iterated set is being modified inside for loop body, iterate through a copy of it instead.

W3101

Safety
Error

Missing timeout argument can cause your program to hang indefinitely

W1115

Safety
Error

Non-string value assigned

We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.