Method name doesn't conform to snake_case naming style
Why is the method name rejected
It appears according to this: http://pylint-messages.wikidot.com/messages:c0103 that the length of the name is capped at 30 characters, where your method name is 49 characters long
The fix
You can shorten the method name, or change your config to allow longer methods
If you are a Visual Studio Code user who wants to ignore this, you can add python.linting.pylintArgs
to .vscode/settings.json
:
{
...
"python.linting.pylintArgs": [
"--disable=C0103"
]
...
}
Very well pointed by @jrtapsell
To Add further information:
There is a regular expression defined for each type when it comes to naming convention.
You may note the length of a name can vary from 2 to 30 characters along with its regex.
+-------------------+---------------+-------------------------------------------+
| Type | Option | Default regular expression |
+-------------------+---------------+-------------------------------------------+
| Argument | argument-rgx | [a-z_][a-z0-9_]{2,30}$ |
| Attribute | attr-rgx | [a-z_][a-z0-9_]{2,30}$ |
| Class | class-rgx | [A-Z_][a-zA-Z0-9]+$ |
| Constant | const-rgx | (([A-Z_][A-Z0-9_]*)|(__.*__))$ |
| Function | function-rgx | [a-z_][a-z0-9_]{2,30}$ |
| Method | method-rgx | [a-z_][a-z0-9_]{2,30}$ |
| Module | module-rgx | (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ |
| Variable | variable-rgx | [a-z_][a-z0-9_]{2,30}$ |
| Variable, inline1 | inlinevar-rgx | [A-Za-z_][A-Za-z0-9_]*$ |
+-------------------+---------------+-------------------------------------------+
Source: http://pylint-messages.wikidot.com/messages:c0103