Skip to content

Why I Don't Care About Code Formatting In Python | Black Tutorial

In this tutorial I explain why I don't care about code formatting while writing Python code.


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

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.


FREE VS Code / PyCharm Extensions I Use

✅ Write cleaner code with Sourcery, instant refactoring suggestions: Link*


PySaaS: The Pure Python SaaS Starter Kit

🚀 Build a software business faster with pure Python: Link*

* These are affiliate link. By clicking on it you will not have any additional costs. Instead, you will support my project. Thank you! 🙏