Python code formatter with rule-based formatting

programming
828
0
Prompt
Build a code formatter in Python that formats and indents the given code according to a set of rules.