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

3.2k views Asked by At

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)
1

There are 1 answers

1
Roland Illig On BEST ANSWER

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.