Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verbose output include information about the settings blue is using for execution #49

Open
ChrisCarini opened this issue Apr 30, 2021 · 1 comment

Comments

@ChrisCarini
Copy link
Contributor

When trying to add a setting in setup.cfg for line-length, it would be nice to have confirmation that this setting is getting picked up and used during execution of blue:

$ > git diff
diff --git a/setup.cfg b/setup.cfg
index 5bfb82f..2650e6e 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -16,6 +16,9 @@ ignore = E203, E266, E501, W503, PIE781
max-complexity = 12
max-line-length = 100

+[blue]
+line-length = 100
+
[isort]
include_trailing_comma = true
indent = '    '

$ > blue -v src/ test/
src/foobar.egg-info/PKG-INFO ignored: matches the .gitignore file content
src/foobar.egg-info/SOURCES.txt ignored: matches the .gitignore file content
src/foobar.egg-info/requires.txt ignored: matches the .gitignore file content
src/foobar.egg-info/top_level.txt ignored: matches the .gitignore file content
src/foobar.egg-info/dependency_links.txt ignored: matches the .gitignore file content
src/the_company_that_pays_me/foobar/__pycache__/utils.cpython-37.pyc ignored: matches the .gitignore file content
src/the_company_that_pays_me/__pycache__/__init__.cpython-37.pyc ignored: matches the .gitignore file content
test/__pycache__/test_utils.cpython-37-pytest-6.1.2.pyc ignored: matches the .gitignore file content
reformatted /Users/ChrisCarini/code/insights-hub-data_trunk/test/test_utils.py
reformatted /Users/ChrisCarini/code/insights-hub-data_trunk/src/the_company_that_pays_me/foobar/utils.py
All done! ✨ 🍰 ✨
2 files reformatted, 1 files left unchanged.

$ >
@grantjenks
Copy link
Owner

I'm not sure how easy this is... but it would be great if Black would print all of the configs it's using with some kind of -vvv switch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants