-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
63 additions
and
51 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
42 changes: 2 additions & 40 deletions
42
...ff_linter__rules__pylint__tests__PLC2701_import_private_name__submodule____main__.py.snap
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,52 +1,14 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/pylint/mod.rs | ||
--- | ||
__main__.py:2:16: PLC2701 Private name import `_a` | ||
| | ||
1 | # Errors. | ||
2 | from _a import b | ||
| ^ PLC2701 | ||
3 | from c._d import e | ||
4 | from _f.g import h | ||
| | ||
|
||
__main__.py:3:18: PLC2701 Private name import `_d` from external module `c` | ||
| | ||
1 | # Errors. | ||
2 | from _a import b | ||
3 | from c._d import e | ||
| ^ PLC2701 | ||
4 | from _f.g import h | ||
5 | from i import _j | ||
| | ||
|
||
__main__.py:4:18: PLC2701 Private name import `_f` | ||
| | ||
2 | from _a import b | ||
3 | from c._d import e | ||
4 | from _f.g import h | ||
| ^ PLC2701 | ||
5 | from i import _j | ||
6 | from k import _l as m | ||
| | ||
|
||
__main__.py:5:15: PLC2701 Private name import `_j` from external module `i` | ||
| | ||
3 | from c._d import e | ||
4 | from _f.g import h | ||
5 | from i import _j | ||
| ^^ PLC2701 | ||
6 | from k import _l as m | ||
| | ||
|
||
__main__.py:6:21: PLC2701 Private name import `_l` from external module `k` | ||
| | ||
4 | from _f.g import h | ||
5 | from i import _j | ||
6 | from k import _l as m | ||
| ^ PLC2701 | ||
7 | | ||
8 | # Non-errors. | ||
7 | import _aaa | ||
8 | import bbb._ccc | ||
| | ||
|
||
|