facebook pixelCodiga Analysis Python Rules, severity error , category best practice
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
Error

Ensure that __slots__ is an iterable and not a base type

Learn more

R1712

Best practice
Error

Consider using tuple unpacking for swapping variables

R1713

Best practice
Error

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

R1715

Best practice
Error

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

W0402

Best practice
Error

Uses of deprecated modules

W0715

Best practice
Error

Passing multiple incorrect arguments to an exception constructor

W1203

Best practice
Error

Use %s in logging function

W1304

Best practice
Error

Unused format argument

W1309

Best practice
Error

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

W1501

Best practice
Error

Invalid file open mode

W0237

Best practice
Error

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

C0104

Best practice
Error

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

R1714

Best practice
Error

Use in instead of iterating over value and using equal

E1142

Best practice
Error

'await' should be used within an async function

W4902

Best practice
Error

Using deprecated method