From: mainj12 <118842653+mainj12@users.noreply.github.com> Date: Sat, 10 Dec 2022 20:56:14 +0000 (+0000) Subject: Adding pyproject.toml configuration output to verbose logging (#3392) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/5f0dc862f5bbfc8abed3f29d76325404eb4f99c0?ds=sidebyside;pf=etc Adding pyproject.toml configuration output to verbose logging (#3392) --- 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 (