While using Black Formatter in VSCode, we can set the maximum line length to prevent some code to be wrapped lines by reformat operation.
Add these in setting.json.
| |
Before:

After:

About the best line length number, refer to Black document.
In general, 90-ish seems like the wise choice.