facebook pixelPython Static Analysis Rules
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
      Minor

      Detect inappropriate use of the not keyword

      Learn more

      C0121

      Best practice
      Minor

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

      C0144

      Best practice
      Minor

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

      C0305

      Best practice
      Minor

      Trailing newlines

      C0412

      Best practice
      Minor

      Imports are not grouped

      C0413

      Best practice
      Minor

      Import and code are mixed

      C0414

      Best practice
      Minor

      Import alias is same as original package

      W0511

      Best practice
      Minor

      Use TODO, not FIXME

      R1731

      Best practice
      Minor

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

      R1735

      Best practice
      Minor

      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
      Minor

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