How to Change the Line Length Character Limit in Black

To change the character limit for the Black Python formatter, you can add a file named [pyproject.toml](https://www.python.org/dev/peps/pep-0518/) with the following:

[tool.black]
line-length = 80

in your project directory.

This change is permanent but will work only in the project with the mentioned file. As of July 2020, I haven’t found a way to make this change permanent globally to a Python environment

Related