diff --git a/CHANGES.rst b/CHANGES.rst index aaf933f02..1164eb0a7 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,7 +5,8 @@ These features will be included in the next release: Added ----- -- The `--preview` configuration flag is now supported in Darker CLI and Block +- The ``--preview`` configuration flag is now supported in the configuration file for + Darker and Black configuration file. Fixed diff --git a/README.rst b/README.rst index b78fcaec7..21f37ad89 100644 --- a/README.rst +++ b/README.rst @@ -379,7 +379,8 @@ The following `command line arguments`_ can also be used to modify the defaults: [py33\|py34\|py35\|py36\|py37\|py38\|py39\|py310\|py311\|py312] Python versions that should be supported by Black's output. [default: per-file auto-detection] --preview - Use black's preview future code style + In Black, enable potentially disruptive style changes that may be added to + Black in the future To change default values for these options for a given project, add a ``[tool.darker]`` section to ``pyproject.toml`` in the project's root directory, diff --git a/contributors.yaml b/contributors.yaml index 850a1b193..16f13d158 100644 --- a/contributors.yaml +++ b/contributors.yaml @@ -203,8 +203,6 @@ talhajunaidd: - {link_type: commits, type: Code} tapted: - {link_type: issues, type: Bug reports} -tehunter: - - {link_type: pulls-author, type: Code} tgross35: - {link_type: issues, type: Bug reports} tkolleh: diff --git a/src/darker/help.py b/src/darker/help.py index 24c5290f2..96890c638 100644 --- a/src/darker/help.py +++ b/src/darker/help.py @@ -133,7 +133,10 @@ def get_extra_instruction(dependency: str) -> str: " `skip-magic-trailing-comma = true` from a Black configuration file." ) -PREVIEW = "Use Black's experimental preview style" +PREVIEW = ( + "In Black, enable potentially disruptive style changes that may be added to Black" + " in the future" +) LINE_LENGTH = "How many characters per line to allow [default: 88]"