In this tutorial I explain why I don't care about code formatting while writing Python code. Instead of wasting time to determine the best format myself, I use a tool called "black" that is doing the code formatting for me.
Black Repo: https://github.com/psf/black
Black is the uncompromising Python code formatter. By using it, you agree to cede control over details of hand-formatting. In return, Black gives you speed, determinism, and freedom from pycodestyle nagging about formatting. You will save time and mental energy for more important matters.