From 5f0dc862f5bbfc8abed3f29d76325404eb4f99c0 Mon Sep 17 00:00:00 2001 From: mainj12 <118842653+mainj12@users.noreply.github.com> Date: Sat, 10 Dec 2022 20:56:14 +0000 Subject: [PATCH] Adding pyproject.toml configuration output to verbose logging (#3392) --- CHANGES.md | 3 +++ src/black/__init__.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index c84feb0..e781cbd 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -36,6 +36,9 @@ +- Verbose logging now shows the values of `pyproject.toml` configuration variables + (#3392) + ### _Blackd_ diff --git a/src/black/__init__.py b/src/black/__init__.py index 39d1296..f00749a 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -511,6 +511,9 @@ def main( # noqa: C901 out("Using configuration from project root.", fg="blue") else: out(f"Using configuration in '{config}'.", fg="blue") + if ctx.default_map: + for param, value in ctx.default_map.items(): + out(f"{param}: {value}") error_msg = "Oh no! 💥 💔 💥" if ( -- 2.39.5