DEV Community

Discussion on: VSCode: Using Black to automatically format Python

rngallen profile image
Luqman Jr

What if I want to override (88) the default chars per line?

waylonwalker profile image
Waylon Walker

You can add this to your pyproject.toml, ~/.black, $XDG_CONFIG_HOME/black, or ~/.config/black

line-length = 88
Enter fullscreen mode Exit fullscreen mode

adamlombard profile image
Adam Lombard (he/him) Author • Edited

I'm a fan of using pyproject.toml, but as an alternative to Waylon's comment regarding config files, you can also configure the line length in VSCode.