There are several Python code checkers available. For example, a lot of developers enjoy using Pylint or Flake8 to check their code for errors. These tools use static code analysis to check your code for bugs or naming issues. Flake8 will also check your code to see if you are adhering to PEP8, Python’s style guide.
However there is a new tool that you can use called Black. Black is a Python code formatter. It will reformat your entire file in place according to the Black code style, which is pretty close to PEP8.
Installing Black is easy. You can just use pip for that:
pip install black
You can also configure popular text editors and IDEs to use Black following these instructions.
Now that Black is installed, let’s give it a try! Continue reading Intro to Black – The Uncompromising Python Code Formatter