From 289f79a4744a94f52f2b689042e90864e3458f13 Mon Sep 17 00:00:00 2001 From: Thomas H Date: Thu, 1 Aug 2024 11:41:47 -0400 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Antti Kaihola <13725+akaihola@users.noreply.github.com> --- CHANGES.rst | 3 ++- README.rst | 3 ++- contributors.yaml | 2 -- src/darker/help.py | 5 ++++- 4 files changed, 8 insertions(+), 5 deletions(-) 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]"