I want to detect (and potentially correct) the following pattern:
# Bad
if condition1:
if condition2:
code
# Should be transformed to:
if condition1 and condition2:
code
Is there a flake8 plugin which can detect that or an "autoformatter" which can do the transformation automatically? (e.g. a pre-commit hook)