About Formatting Lists of Arguments with Black

If you end a list of arguments with a comma and then reformat your code with Black, your arguments will be listed one-per-line.

1
form = MyForm(data=request.POST, files=request.FILES,)

will become:

1
2
3
4
form = MyForm(
    data=request.POST,
    files=request.FILES,
)

That's useful to know for consistent representation of function calls, method calls, and class initializations.

Tips and Tricks Programming Development Python 3 Black