how can pylint msg "too many local variables" be disabled

you can modify the max-locals for local variable and max-args for method arguments in .pylintrc file

[DESIGN]

# Maximum number of locals for function / method body
max-locals=25

# Maximum number of arguments for function / method
max-args=10

from : source


If you need to skip pylint validation for some specific function then add the line (comment)

# pylint: disable-msg=too-many-locals

inside that function. You may add this line right after the function declaration.