-
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.
Browse files
Browse the repository at this point in the history
… fixtures
- Loading branch information
Showing
2 changed files
with
30 additions
and
30 deletions.
There are no files selected for viewing
42 changes: 21 additions & 21 deletions
42
...es/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_24____init__.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,42 +1,42 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/pyflakes/mod.rs | ||
--- | ||
__init__.py:23:8: F401 [*] `sys` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | ||
__init__.py:19:8: F401 [*] `sys` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | ||
| | ||
23 | import sys # F401: remove unused | ||
19 | import sys # F401: remove unused | ||
| ^^^ F401 | ||
| | ||
= help: Remove unused import: `sys` | ||
|
||
ℹ Unsafe fix | ||
20 20 | | ||
21 21 | | ||
22 22 | | ||
23 |-import sys # F401: remove unused | ||
24 23 | | ||
25 24 | | ||
26 25 | | ||
16 16 | import argparse as argparse # Ok: is redundant alias | ||
17 17 | | ||
18 18 | | ||
19 |-import sys # F401: remove unused | ||
20 19 | | ||
21 20 | | ||
22 21 | # first-party | ||
|
||
__init__.py:43:15: F401 [*] `.unused` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | ||
__init__.py:33:15: F401 [*] `.unused` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | ||
| | ||
43 | from . import unused # F401: change to redundant alias | ||
33 | from . import unused # F401: change to redundant alias | ||
| ^^^^^^ F401 | ||
| | ||
= help: Remove unused import: `.unused` | ||
|
||
ℹ Safe fix | ||
40 40 | | ||
41 41 | | ||
42 42 | | ||
43 |-from . import unused # F401: change to redundant alias | ||
43 |+from . import unused as unused # F401: change to redundant alias | ||
44 44 | | ||
45 45 | | ||
46 46 | | ||
30 30 | from . import aliased as aliased # Ok: is redundant alias | ||
31 31 | | ||
32 32 | | ||
33 |-from . import unused # F401: change to redundant alias | ||
33 |+from . import unused as unused # F401: change to redundant alias | ||
34 34 | | ||
35 35 | | ||
36 36 | from . import renamed as bees # F401: no fix | ||
|
||
__init__.py:47:26: F401 `.renamed` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | ||
__init__.py:36:26: F401 `.renamed` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | ||
| | ||
47 | from . import renamed as bees # F401: no fix | ||
36 | from . import renamed as bees # F401: no fix | ||
| ^^^^ F401 | ||
| | ||
= help: Remove unused import: `.renamed` |
18 changes: 9 additions & 9 deletions
18
...flakes/snapshots/ruff_linter__rules__pyflakes__tests__F401_F401_25__all____init__.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,18 +1,18 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/pyflakes/mod.rs | ||
--- | ||
__init__.py:23:8: F401 [*] `sys` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | ||
__init__.py:19:8: F401 [*] `sys` imported but unused; consider removing, adding to `__all__`, or using a redundant alias | ||
| | ||
23 | import sys # F401: remove unused | ||
19 | import sys # F401: remove unused | ||
| ^^^ F401 | ||
| | ||
= help: Remove unused import: `sys` | ||
|
||
ℹ Unsafe fix | ||
20 20 | | ||
21 21 | | ||
22 22 | | ||
23 |-import sys # F401: remove unused | ||
24 23 | | ||
25 24 | | ||
26 25 | | ||
16 16 | import argparse # Ok: is exported in __all__ | ||
17 17 | | ||
18 18 | | ||
19 |-import sys # F401: remove unused | ||
20 19 | | ||
21 20 | | ||
22 21 | # first-party |