Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support black's --experimental-string-processing flag #185

Closed
feluelle opened this issue Sep 8, 2022 · 1 comment · Fixed by #273
Closed

Support black's --experimental-string-processing flag #185

feluelle opened this issue Sep 8, 2022 · 1 comment · Fixed by #273

Comments

@feluelle
Copy link

feluelle commented Sep 8, 2022

It would be great if blacken-docs would also allow using the --experimental-string-processing to split lines in the docstring if they reach the line length limit.

@adamchainz
Copy link
Owner

Black 22.1.0 deprecated --experimental-string-processing and rolled it into --preview, so I've added support for passing through --preview in #273.

Note though that it's probably better to put the option into your configuration, like pyproject.toml:

[tool.black]
preview = true

This way the option will apply to both black and blacken-docs with no further options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants