title: How to deal with ugly code formatter output? (Black)
body: <p>I'm currently experimenting with the Black code formatter for Python.
  In >90% of the cases I am happy with the output (with default configs), but it regularly happens, that it formats some lines in a way that seems rather ugly to me.</p>
  
  <p>Here an example, before and after formatting with black.</p>
  
  <p>Before:
  <a href="https://i.stack.imgur.com/VHH1x.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VHH1x.png" alt="Before formatting"></a></p>
  
  <p>After:
  <a href="https://i.stack.imgur.com/Wpy6m.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Wpy6m.png" alt="After formatting"></a></p>
  
  <p>The syntax of these two lines is originally identical (same function, same number of arguments...), so it makes sense to format them in the same way. However, as the first line is slightly longer, Black formats it differently, which makes it much more difficult to read and interpret the code. </p>
  
  <p>Of course, in this particular case, you could just increase the <code>linelength</code> parameter of Black, but that doesn't really solve the problem in general, and I would like to stick with the default configuration.</p>
  
  <p>I have come across many such situations, also using other formatters such as Prettier for JavaScript.
  How do you handle these situations? Is there for example a way to tell Black, to ignore these particular lines and not format them?</p>