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

Is there a way to merge info like this(W0614) #3859

Closed
uraphaelp opened this issue Sep 24, 2020 · 0 comments · Fixed by #5110
Closed

Is there a way to merge info like this(W0614) #3859

uraphaelp opened this issue Sep 24, 2020 · 0 comments · Fixed by #5110
Labels
Enhancement ✨ Improvement to a component

Comments

@uraphaelp
Copy link

Question

When my code had: from sys import * , I got following output:

...
.py:2:0: W0614: Unused import byteorder from wildcard import (unused-wildcard-import)
.py:2:0: W0614: Unused import call_tracing from wildcard import (unused-wildcard-import)
.py:2:0: W0614: Unused import callstats from wildcard import (unused-wildcard-import)
.py:2:0: W0614: Unused import copyright from wildcard import (unused-wildcard-import)
.py:2:0: W0614: Unused import displayhook from wildcard import (unused-wildcard-import)
.py:2:0: W0614: Unused import dont_write_bytecode from wildcard import (unused-wildcard-import)
.py:2:0: W0614: Unused import exc_info from wildcard import (unused-wildcard-import)
...

I wonder if there is a way to merge this infomation into a single line output like .py:2:0: W0614: 'sys' unused-wildcard-import. I just want a brief conclusion instead of all files listed in a single module

@Pierre-Sassoulas Pierre-Sassoulas added the Enhancement ✨ Improvement to a component label Oct 1, 2020
DanielNoord added a commit to DanielNoord/pylint that referenced this issue Oct 3, 2021
Instead of reporting all unused imports, the checker now emits one
single message for all unused imports with a stylized string containing
all imports.
This closes pylint-dev#3859
Pierre-Sassoulas pushed a commit that referenced this issue Oct 4, 2021
* Improve and flatten ``unused-wildcard-import`` message
Instead of reporting all unused imports, the checker now emits one
single message for all unused imports with a stylized string containing
all imports.
This closes #3859

* Add tests for string formation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ Improvement to a component
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants