Yes! My favorite and the favorite of a good percentage of the Python community is black.
In VSCode, I use the Python extension. In settings, under the Python extension, set the formatting provider to Black:
Then, make sure format on save is set to true.
When you save a Python file, if you don't have Black installed in that environment, you will get a prompt to install it. It is pip install black to do so manually.
Chief Mentor @ learnwithparam.com | Helping software engineers become AI powerhouses through hands-on workshops & bootcamps π | Mentoring & consulting teams to turn ideas into AI products β impact π
Yes! My favorite and the favorite of a good percentage of the Python community is black.
In VSCode, I use the Python extension. In settings, under the Python extension, set the formatting provider to Black:
Then, make sure format on save is set to true.
When you save a Python file, if you don't have Black installed in that environment, you will get a prompt to install it. It is
pip install blackto do so manually.As for git hooks, there should be some helpful info in this article, but I haven't implemented it before myself: ljvmiranda921.github.io/notebook/2...
+1 for black
Thanks Thomas, itβs really helpful