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.

      C0205

      Best practice
      High

      Ensure that __slots__ is an iterable and not a base type

      Learn more

      R1712

      Best practice
      High

      Consider using tuple unpacking for swapping variables

      R1713

      Best practice
      High

      Consider using str.join() for concatenating strings from an iterable

      R1715

      Best practice
      High

      Consider using dict.get for getting values from a dict if a key is present or a default if not

      W0402

      Best practice
      High

      Uses of deprecated modules

      W0715

      Best practice
      High

      Passing multiple incorrect arguments to an exception constructor

      W1203

      Best practice
      High

      Use %s in logging function

      W1304

      Best practice
      High

      Unused format argument

      W1309

      Best practice
      High

      Using an f-string that does not have any interpolated variables

      W1501

      Best practice
      High

      Invalid file open mode

      W0237

      Best practice
      High

      Method parameter has a different name than in the implemented interface or in an overridden method

      C0104

      Best practice
      High

      Disallowed name (e.g. foo, bar, etc)

      R1714

      Best practice
      High

      Use in instead of iterating over value and using equal

      E1142

      Best practice
      High

      'await' should be used within an async function