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

E0401

Safety
Error

Module that cannot be imported

E0402

Safety
Error

Attempted relative import beyond top-level package

E0702

Safety
Error

Raising int while only classes or instances are allowed

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

W1404

Safety
Error

Implicit string concatenation

W1508

Safety
Error

Invalid default value when getting the environment

E4702

Safety
Error

Iterated dict 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.