Skip to content

Rule "cases" (spelling)

All rule names support two type of cases (spelling):

  • CamelCase
  • snake_case (PEP8)

CamelCase

It is the same name as rule's class name. For example:

  • StringType
  • IntVal
  • VideoUrl

Tip

Also you can start rule name with the first lower letter - stringType, intVal. It also works.

snake_case

Based on PEP8 all methods must have snake_case names, then you can add all rules in this shape. For example:

  • string_type
  • int_val
  • video_url

Attention

Your custom rules must not have _ (underscores) in names, else you get error. Based on PEP8 all class names must be in CamelCase (CapWords).