-
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.
Use dynamic builtins list based on Python version
- Loading branch information
1 parent
828871d
commit 4d81ad5
Showing
13 changed files
with
459 additions
and
332 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
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
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
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
57 changes: 57 additions & 0 deletions
57
...ke8_builtins/snapshots/ruff_linter__rules__flake8_builtins__tests__A004_A004.py_py38.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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs | ||
--- | ||
A004.py:1:16: A004 Import `sum` is shadowing a Python builtin | ||
| | ||
1 | import some as sum | ||
| ^^^ A004 | ||
2 | import float | ||
3 | from some import other as int | ||
| | ||
|
||
A004.py:2:8: A004 Import `float` is shadowing a Python builtin | ||
| | ||
1 | import some as sum | ||
2 | import float | ||
| ^^^^^ A004 | ||
3 | from some import other as int | ||
4 | from some import input, exec | ||
| | ||
|
||
A004.py:3:27: A004 Import `int` is shadowing a Python builtin | ||
| | ||
1 | import some as sum | ||
2 | import float | ||
3 | from some import other as int | ||
| ^^^ A004 | ||
4 | from some import input, exec | ||
5 | from directory import new as dir | ||
| | ||
|
||
A004.py:4:18: A004 Import `input` is shadowing a Python builtin | ||
| | ||
2 | import float | ||
3 | from some import other as int | ||
4 | from some import input, exec | ||
| ^^^^^ A004 | ||
5 | from directory import new as dir | ||
| | ||
|
||
A004.py:4:25: A004 Import `exec` is shadowing a Python builtin | ||
| | ||
2 | import float | ||
3 | from some import other as int | ||
4 | from some import input, exec | ||
| ^^^^ A004 | ||
5 | from directory import new as dir | ||
| | ||
|
||
A004.py:5:30: A004 Import `dir` is shadowing a Python builtin | ||
| | ||
3 | from some import other as int | ||
4 | from some import input, exec | ||
5 | from directory import new as dir | ||
| ^^^ A004 | ||
6 | | ||
7 | # See: https://github.com/astral-sh/ruff/issues/13037 | ||
| |
Oops, something went wrong.