Black make function arguments formatting without new lines around barackets

1.1k views Asked by At

I'd like to format function argumetns in a way similar to the PyCharm default formatting - see image. Meaning no new line after '(' and before ) so it does NOT look like in the second image. It looks cleaner to me when function name is more visible.

I want this:

enter image description here

I do NOT want this:

enter image description here

1

There are 1 answers

0
cadolphs On

Black is a highly opinionated formatter with the stated goal of making diffs shorter and consistent.

This is what you get.

The only thing you can configure for Black, at the time of writing, is the line length.