forked from pylint-dev/pylint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix false-positive
useless-suppression
for line-too-long
Also changes ``add_ignored_message()`` to make ``nodes`` parameter optional. Closes pylint-dev#4212
- Loading branch information
1 parent
162cbfe
commit 83fc697
Showing
4 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
"""Test for useless suppression false positive for wrong-import-order | ||
Reported in https://github.com/PyCQA/pylint/issues/2366""" | ||
# pylint: enable=useless-suppression | ||
"""Test for useless suppressions""" | ||
# pylint: enable=useless-suppression, line-too-long | ||
# pylint: disable=unused-import, wrong-import-order | ||
|
||
# False positive for wrong-import-order | ||
# Reported in https://github.com/PyCQA/pylint/issues/2366 | ||
from pylint import run_pylint | ||
import astroid | ||
|
||
# False-positive for 'line-too-long' | ||
VAR = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" # pylint: disable=line-too-long |