facebook pixelCodiga Analysis Python Rules, category code style
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.

C0112

Code style
Informational

Module, function, class or method have an empty docstring

Learn more

C0122

Code style
Warning

Check correct use of constants in comparisons.

C0202

Code style
Informational

Detect when a class method has a first argument named differently than the value specified in valid-classmethod-first-arg option

C0203

Code style
Informational

Detect when a metaclass method has a first argument named differently than the value specified in valid-classmethod-first-arg option.

C0204

Code style
Informational

Metaclass class method __new__ should have 'cls' as first argument

C0302

Code style
Informational

Too many lines in a module

C0304

Code style
Informational

Final newline missing

C0325

Code style
Warning

Unnecessary parens

C0326

Code style
Informational

Bad whitespace

C0327

Code style
Informational

Mixed line endings (between LF and CRLF)

C0330

Code style
Informational

Wrong indentation

E0011

Code style
Error

Unrecognized options

E0101

Code style
Error

Use of return in init

E0211

Code style
Error

A method which should have the bound instance as first argument has no argument defined.

E0213

Code style
Error

Method should have self as first argument

E0602

Code style
Error

Undefined variable is trying to be accessed

E0611

Code style
Critical

Invalid name in module

E1301

Code style
Error

Format string ends in middle of conversion specifier

W0232

Code style
Warning

Class has no __init__ method

W0301

Code style
Warning

Unnecessary semicolon

C0102

Code style
Informational

Detect blacklisted names (toto, foo, etc)

C0209

Code style
Informational

Use a f-string

W0410

Code style
Informational

__future__ import is not the first non docstring statement

C0105

Code style
Informational

Name doesn't conform to naming rules associated to its type