Use black --preview
for formatting.
#12849
Labels
enhancement
New feature or an improvement of an existing feature
--preview
for formatting.
#12849
Description
Edit: looks like we don't use black anyway, but ruff's formatter which is a close equivalent, but doesn't yet support black's style. Not sure if this is feasible at the moment.
The black preview style can be enabled with the
preview = true
flag in ourpyproject.toml
file. Enabling this would (in my opinion) make a lot of the code more readable. Primarily, the improved multiline dictionary and list indentation makes this:into this:
Which is much more concise and removes an entire level of indentation.
The drawback is of course that the preview style is subject to change, but I think the pros outweigh the cons.
The text was updated successfully, but these errors were encountered: