I occasionally spend a considerable amount of time tracking down brainfarts in my code… while I normally run pylint against it, there are some things that slip past pylint. The easiest problem for me to overlook is this…
# normally, variable is populated from parsed text, so it's not predictable
variable = 'fOoBaR'
if variable.lower == 'foobar':
# ^^^^^<------------------ should be .lower()
do_something()
Neither pylint nor Python bark about this… is there a python code-checking tool that can flag this particular issue?
This is pylint ticket #65910