multiple-statements-on-one-line-colon (E701)
Derived from the pycodestyle linter.
What it does
Checks for compound statements (multiple statements on the same line).
Why is this bad?
According to PEP 8, "compound statements are generally discouraged".
Example
Use instead: