Search code examples
pylintsnakecasing

pylint3 Variable name "fl" doesn't conform to snake_case naming style (invalid-name)


According to this pylint-wiki, it seems that 2 letter variable names are ok:

Variable variable-rgx [a-z_][a-z0-9_]{2,30}$

But for some reason I get the following error:

Variable name "fl" doesn't conform to snake_case naming style (invalid-name)

Solution

  • The regular expression says:

    • A letter or underscore
    • Followed by at least 2 letters, underscores or digits

    In total this sums up to at least 3 characters per variable name.