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.

C0113

Best practice
Informational

Detect inappropriate use of the not keyword

Learn more

C0121

Best practice
Informational

Check when valid is compared to True, False or None (and can be replaced by simpler expressions)

C0144

Best practice
Informational

Detect when a name contains at least one non-ASCII unicode character

C0305

Best practice
Informational

Trailing newlines

C0412

Best practice
Informational

Imports are not grouped

C0413

Best practice
Informational

Import and code are mixed

C0414

Best practice
Informational

Import alias is same as original package

R1722

Best practice
Informational

Use sys.exit()

W0511

Best practice
Informational

Use TODO, not FIXME

R1731

Best practice
Informational

Using the max builtin instead of a conditional improves readability and conciseness

R1735

Best practice
Informational

Using dict() to create an empty dictionary instead of the literal {}. The literal is faster as it avoids an additional function call.

E2502

Best practice
Informational

Contains control characters that can permit obfuscated code executed differently than displayed.

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.