flake8-functions-names
flake8-functions-names copied to clipboard
profile is not only a verb
class User:
@property
def profile_picture(self):
return "img.jpg"
Right now the above gives the error: FNE002 The method has a @property decorator, but has a verb in it's name (profile) [flake8-functions-names]
- which I think is not really warranted in this case.
I mean it is easy enough to disable for specific cases, but would it make sense to remove such words that can act as both nouns and verbs from the list? Or was it a deliberate decision anyways to include such examples as well?
Hey. The problem exists: there are many words that can be verbs and not verbs in different situations. I think the solution is to add extra_verbs_list and extra_not_verbs_list as arguments and tune them for a concrete project.
Oh yeah you're right, something like that would probably be a good solution then 👍