From 1c8dd0199b3fd9c503714fbf24cb97753dee3bf2 Mon Sep 17 00:00:00 2001 From: Thomas H Date: Thu, 30 May 2024 11:29:38 -0400 Subject: [PATCH] Update project information --- CHANGES.rst | 2 ++ README.rst | 5 +++++ contributors.yaml | 2 ++ 3 files changed, 9 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index e660e44fb..aaf933f02 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,6 +5,8 @@ These features will be included in the next release: Added ----- +- The `--preview` configuration flag is now supported in Darker CLI and Block + configuration file. Fixed ----- diff --git a/README.rst b/README.rst index 52839d2f9..b78fcaec7 100644 --- a/README.rst +++ b/README.rst @@ -378,6 +378,8 @@ The following `command line arguments`_ can also be used to modify the defaults: -t VERSION, --target-version VERSION [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 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, @@ -412,6 +414,7 @@ An example ``pyproject.toml`` configuration file: line-length = 80 # Passed to isort and Black, override their config target-version = ["py312"] # Passed to Black, overriding its config log_level = "INFO" + preview = false # Passed to Black, overriding its config [tool.black] line-length = 88 # Overridden by [tool.darker] above @@ -421,6 +424,8 @@ An example ``pyproject.toml`` configuration file: exclude = "test_*\.py" extend_exclude = "/generated/" force_exclude = ".*\.pyi" + preview = true # Overridden above + [tool.isort] profile = "black" diff --git a/contributors.yaml b/contributors.yaml index 16f13d158..850a1b193 100644 --- a/contributors.yaml +++ b/contributors.yaml @@ -203,6 +203,8 @@ 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: