Adding pyproject.toml configuration output to verbose logging (#3392)

This commit is contained in:
mainj12 2022-12-10 20:56:14 +00:00 committed by GitHub
parent 16b98abca9
commit 5f0dc862f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,9 @@
<!-- Changes to Black's terminal output and error messages -->
- Verbose logging now shows the values of `pyproject.toml` configuration variables
(#3392)
### _Blackd_
<!-- Changes to blackd -->

View File

@ -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 (