Skip to content

How to pass --preview argument to black #350

Closed Answered by akaihola
simgunz asked this question in Q&A
Discussion options

You must be logged in to vote

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?

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@simgunz
Comment options

@akaihola
Comment options

Answer selected by akaihola
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants