-
Notifications
You must be signed in to change notification settings - Fork 881
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Track ranges of names inside
__all__
definitions
- Loading branch information
1 parent
4f06d59
commit eefcdd4
Showing
9 changed files
with
41 additions
and
39 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
6 changes: 2 additions & 4 deletions
6
...ter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_0.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,12 +1,10 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/pyflakes/mod.rs | ||
--- | ||
F822_0.py:3:1: F822 Undefined name `b` in `__all__` | ||
F822_0.py:3:17: F822 Undefined name `b` in `__all__` | ||
| | ||
1 | a = 1 | ||
2 | | ||
3 | __all__ = ["a", "b"] | ||
| ^^^^^^^ F822 | ||
| ^^^ F822 | ||
| | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
...er/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_0.pyi.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,10 +1,10 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/pyflakes/mod.rs | ||
--- | ||
F822_0.pyi:4:1: F822 Undefined name `c` in `__all__` | ||
F822_0.pyi:4:22: F822 Undefined name `c` in `__all__` | ||
| | ||
2 | b: int # Considered a binding in a `.pyi` stub file, not in a `.py` runtime file | ||
3 | | ||
4 | __all__ = ["a", "b", "c"] # c is flagged as missing; b is not | ||
| ^^^^^^^ F822 | ||
| ^^^ F822 | ||
| |
6 changes: 2 additions & 4 deletions
6
...ter/src/rules/pyflakes/snapshots/ruff_linter__rules__pyflakes__tests__F822_F822_1.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,12 +1,10 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/pyflakes/mod.rs | ||
--- | ||
F822_1.py:3:1: F822 Undefined name `b` in `__all__` | ||
F822_1.py:3:22: F822 Undefined name `b` in `__all__` | ||
| | ||
1 | a = 1 | ||
2 | | ||
3 | __all__ = list(["a", "b"]) | ||
| ^^^^^^^ F822 | ||
| ^^^ F822 | ||
| | ||
|
||
|
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