Method-regex with negativ lookahead
17 May
2020
17 May
'20
11:33 a.m.
Hello, I try to configure pylint so that the naming conventions of Java are avoided e.g. method names with get, set, test or print within the name. I have set the entry for testing: method-rgx=^((?!get).)*$ But my function def get_print(): print(„test“) Is not found. So my question is, what is the correct expression to disallow any method which contains get, set, test or print and match the default snake_case definition? Thanks Phil
1432
Age (days ago)
1432
Last active (days ago)
1 comments
2 participants
participants (2)
-
Marc Rintsch
-
Philipp Kraus