From 62fab63c28986848a5edca3a6cda8bf7b071ef4c 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 | 4 ++-- README.rst | 3 ++- contributors.yaml | 2 -- src/darker/help.py | 5 ++++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 285ecfc21..141a7510d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,8 +10,8 @@ Added - Display exit code in parentheses after error message. - Do not reformat renamed files. - CI workflow to post recent project activity in a discussion. Triggered manually. -- The `--preview` configuration flag is now supported in Darker CLI and Black - configuration files. +- The ``--preview`` configuration flag is now supported in the configuration files for + Darker and Black Fixed ----- diff --git a/README.rst b/README.rst index 1cff3204b..d25a07e20 100644 --- a/README.rst +++ b/README.rst @@ -359,7 +359,8 @@ The following `command line arguments`_ can also be used to modify the defaults: -i, --isort Also sort imports using the ``isort`` package --preview - Use Black's experimental preview style + In Black, enable potentially disruptive style changes that may be added to Black + in the future -L CMD, --lint CMD Run a linter on changed files. ``CMD`` can be a name or path of the linter binary, or a full quoted command line with the command and options. Linters read 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]"