-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
5 changed files
with
47 additions
and
12 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
8 changes: 7 additions & 1 deletion
8
...s/ruff_linter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__init.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,11 +1,17 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/pyflakes/mod.rs | ||
--- | ||
__init__.py:1:8: F401 `os` imported but unused; consider adding to `__all__` or using a redundant alias | ||
__init__.py:1:8: F401 [*] `os` imported but unused; consider adding to `__all__` or using a redundant alias | ||
| | ||
1 | import os | ||
| ^^ F401 | ||
2 | | ||
3 | print(__path__) | ||
| | ||
= help: Remove unused import: `os` | ||
|
||
ℹ Unsafe fix | ||
1 |-import os | ||
2 1 | | ||
3 2 | print(__path__) | ||
4 3 | |
8 changes: 7 additions & 1 deletion
8
...akes/snapshots/ruff_linter__rules__pyflakes__tests__init_unused_import_opt_in_to_fix.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,11 +1,17 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/pyflakes/mod.rs | ||
--- | ||
__init__.py:1:8: F401 `os` imported but unused; consider adding to `__all__` or using a redundant alias | ||
__init__.py:1:8: F401 [*] `os` imported but unused; consider adding to `__all__` or using a redundant alias | ||
| | ||
1 | import os | ||
| ^^ F401 | ||
2 | | ||
3 | print(__path__) | ||
| | ||
= help: Remove unused import: `os` | ||
|
||
ℹ Unsafe fix | ||
1 |-import os | ||
2 1 | | ||
3 2 | print(__path__) | ||
4 3 | |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.