This PR removes the `--preview` requirement for
`quote-style: preserve` and changes the semantics of
the style to apply to all strings (including triple quoted and doc-strings).
The motivation for changing the semantic to apply to all strings is:
* The option is intended as a replacement for black's `--skip-string-normalization` that applies to all strings
* The option is intended for projects that can't enforce a consistent quote style. These are mainly projects that want to use a formatter but can't agree on a single quote style or changing all strings leads to too large diffs. Allowing these users to use a formatter is more important than being opinionated on the quote style
* We received reports that users were surprised that `preserve` didn't apply to all strings.
Fixes #9185
This PR removes the
--previewrequirement forquote-style: preserveand changes the semantics ofthe style to apply to all strings (including triple quoted and doc-strings).
The motivation for changing the semantic to apply to all strings is:
--skip-string-normalizationthat applies to all stringspreservedidn't apply to all strings.Fixes #9185
Test Plan
cargo test. Reviewed the snapshot changes. Tested the CLI that usingquote-style: preservewithout the preview flag no longer aborts.