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.
Implemented new check consider-using-from-import (pylint-dev#4491)
- Loading branch information
Showing
7 changed files
with
48 additions
and
21 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
8 changes: 6 additions & 2 deletions
8
...ctional/u/useless/useless-import-alias.py → tests/functional/i/import_aliasing.py
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
useless-import-alias:6:0::Import alias does not rename original package | ||
consider-using-from-import:8:0::Use 'from os import path' instead | ||
consider-using-from-import:10:0::Use 'from foo.bar import foobar' instead | ||
useless-import-alias:14:0::Import alias does not rename original package | ||
useless-import-alias:17:0::Import alias does not rename original package | ||
useless-import-alias:18:0::Import alias does not rename original package | ||
useless-import-alias:20:0::Import alias does not rename original package | ||
useless-import-alias:21:0::Import alias does not rename original package | ||
useless-import-alias:23:0::Import alias does not rename original package |
This file was deleted.
Oops, something went wrong.