-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Steps to reproduce
Run pylint on the following code:
# pylint: enable=useless-suppression
from pylint import run_pylint
import astroid
from pylint import run_pyreverse # pylint: disable=ungrouped-importsCurrent behavior
This message is issued:
4:0: I0021: Useless suppression of 'ungrouped-imports' (useless-suppression)
However, if the comment is removed from line 4, this message is issued:
4:0: C0412: Imports from package pylint are not grouped (ungrouped-imports)
Expected behavior
Since there is an actual message being suppressed, I would expect to get no useless-suppression message.
pylint --version output
pylint 2.0.1
astroid 2.0.1
Python 3.4.6 (default, Mar 22 2017, 12:26:13) [GCC]
jkevingutierrez, jamesbraza and villebro