]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Add --experimental-string-processing to future changes (#2273)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Sat, 29 May 2021 14:27:54 +0000 (07:27 -0700)
committerGitHub <noreply@github.com>
Sat, 29 May 2021 14:27:54 +0000 (07:27 -0700)
* add esp to future style

* changelog

* fix label

CHANGES.md
docs/the_black_code_style/current_style.md
docs/the_black_code_style/future_style.md

index 5f570e2b8c7d24bc6068902ecc36f04cbb6f7e32..0d595bb0d50bdf78fcf41be0ed1fbd7ea3122d50 100644 (file)
@@ -23,6 +23,7 @@
 
 ### Documentation
 
+- `--experimental-string-processing` will be enabled by default in the future (#2273)
 - Fix typos discovered by codespell (#2228)
 - Fix Vim plugin installation instructions. (#2235)
 - Add new Frequently Asked Questions page (#2247)
index 00001dbc461cebd03837216ca6b8f6e7d113294b..8c3a30270d1347dcd1a6b89fe448d9f3947a68bd 100644 (file)
@@ -250,6 +250,8 @@ If you are adopting _Black_ in a large project with pre-existing string conventi
 you can pass `--skip-string-normalization` on the command line. This is meant as an
 adoption helper, avoid using this for new projects.
 
+(labels/experimental-string)=
+
 As an experimental option (can be enabled by `--experimental-string-processing`),
 _Black_ splits long strings (using parentheses where appropriate) and merges short ones.
 When split, parts of f-strings that don't need formatting are converted to plain
index aca9fe040171d15ad314834d7cf4321af321e363..a7676090553a319a2f4ef003bed71634f0b17d3a 100644 (file)
@@ -33,3 +33,10 @@ with \
 
 Although when the target version is Python 3.9 or higher, _Black_ will use parentheses
 instead since they're allowed in Python 3.9 and higher.
+
+## Improved string processing
+
+Currently, _Black_ does not split long strings to fit the line length limit. Currently,
+there is [an experimental option](labels/experimental-string) to enable splitting
+strings. We plan to enable this option by default once it is fully stable. This is
+tracked in [this issue](https://github.com/psf/black/issues/2188).