From the course: Create an Open-Source Project in Python

Unlock the full course today

Join today to access over 24,000 courses taught by industry experts.

What is Black?

What is Black?

- [Instructor] Last video, we talked about the importance of following the PEP 8. However, it seems very difficult to follow it correctly all the time. Don't worry, as developer have tools to help us do it. One of them is Black. Black is a code formatter, meaning that it will rewrite your code without changing how it works to fulfill certain style or format. While using Black, your code will be format to the black code style. You may customize the resulting format a little bit, but the option to change the format is limited. You can read more about what is Black code style at that documentation if interested. However, the most important point that we are using it here is that the code style is PEP 8 compliant. Meaning, after formatting your code, it will be PEP 8 compliance automatically. Black is a project that is hosted on a Python package index or PyPI, meaning that you can PEP install it easily. Since Black has been…

Contents