[Python-projects] pylint configuration question
skip at pobox.com
skip at pobox.com
Sun Jul 30 17:32:00 CEST 2006
Kent> Currently pylint wants method names like ``method_name``.
Kent> What is the correct way to make
Kent> Zope3 ``methodName`` style exceptable?
Set the method-rgx variable in your .pylintrc file, something like this:
method-rgx=[a-z_][A-Za-z0-9]{2,30}$
should work. The default is:
method-rgx=[a-z_][a-z0-9_]{2,30}$
Then again, by eliminating _ from the second grouping I probably eliminated
a valid class of method names. Maybe just add the A-Z to the default:
method-rgx=[a-z_][A-Za-z0-9_]{2,30}$
I suppose it depends on your local conventions.
Skip
More information about the Python-Projects
mailing list