-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Update: Design discussion (custom options vs. Arbitrary arguments to Black aren't yet supported. Darker invokes Black directly through its internal Python API. The Black configuration is actually first read by Darker, and some options are passed on to Black. But We could either add What do you think of these options @simgunz? |
Beta Was this translation helpful? Give feedback.
-
#589 now proposes a I vote against adding corresponding configuration file options in the [tool.black]
preview = true in the same file. Discussion on the choice between |
Beta Was this translation helpful? Give feedback.
Update: Design discussion (custom options vs.
--extra-black-options
) now in #589, and--extra-black-options
implementation discussion in #351.Arbitrary arguments to Black aren't yet supported.
Darker invokes Black directly through its internal Python API. The Black configuration is actually first read by Darker, and some options are passed on to Black. But
--preview
isn't currently one of those options.We could either add
--preview
to the passed options, or add an--extra-black-options="--preview ..."
kind of a command line argument to Darker.What do you think of these options @simgunz?