Skip to content

Commit

Permalink
[ruff F401 #10390 #10391] cargo insta review for the reformatted test…
Browse files Browse the repository at this point in the history
… fixtures
  • Loading branch information
plredmond committed Apr 30, 2024
1 parent c4ae954 commit 667d08e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
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`
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

0 comments on commit 667d08e

Please sign in to comment.