Set line length of black
In the root of your project add a file called pyproject.toml
with the content:
[tool.black]
line-length = 80
or for longer lines:
[tool.black]
line-length = 119
What is pyproject.toml?
One could also add a config file to the home directory of your user:
where black looks for config file?
In ~/.config/black
add:
[tool.black]
line-length = 119