-
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.
[Ruff v0.5] Stabilise 15 pylint rules (#12051)
- Loading branch information
1 parent
0917ce1
commit 4029a25
Showing
14 changed files
with
95 additions
and
84 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
14 changes: 8 additions & 6 deletions
14
...lint/snapshots/ruff_linter__rules__pylint__tests__PLC2403_non_ascii_module_import.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,38 +1,40 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/pylint/mod.rs | ||
--- | ||
non_ascii_module_import.py:1:29: PLC2403 Module alias `łos` contains a non-ASCII character, use an ASCII-only alias | ||
non_ascii_module_import.py:1:29: PLC2403 Module alias `łos` contains a non-ASCII character | ||
| | ||
1 | from os.path import join as łos # Error | ||
| ^^^ PLC2403 | ||
2 | from os.path import join as los # OK | ||
| | ||
= help: Use an ASCII-only alias | ||
|
||
non_ascii_module_import.py:4:24: PLC2403 Module alias `łos` contains a non-ASCII character, use an ASCII-only alias | ||
non_ascii_module_import.py:4:24: PLC2403 Module alias `łos` contains a non-ASCII character | ||
| | ||
2 | from os.path import join as los # OK | ||
3 | | ||
4 | import os.path.join as łos # Error | ||
| ^^^ PLC2403 | ||
5 | import os.path.join as los # OK | ||
| | ||
= help: Use an ASCII-only alias | ||
|
||
non_ascii_module_import.py:7:8: PLC2403 Module name `os.path.łos` contains a non-ASCII character, use an ASCII-only alias | ||
non_ascii_module_import.py:7:8: PLC2403 Module name `os.path.łos` contains a non-ASCII character | ||
| | ||
5 | import os.path.join as los # OK | ||
6 | | ||
7 | import os.path.łos # Error (recommend an ASCII alias) | ||
| ^^^^^^^^^^^ PLC2403 | ||
8 | import os.path.los # OK | ||
| | ||
= help: Use an ASCII-only alias | ||
|
||
non_ascii_module_import.py:10:21: PLC2403 Module name `łos` contains a non-ASCII character, use an ASCII-only alias | ||
non_ascii_module_import.py:10:21: PLC2403 Module name `łos` contains a non-ASCII character | ||
| | ||
8 | import os.path.los # OK | ||
9 | | ||
10 | from os.path import łos # Error (recommend an ASCII alias) | ||
| ^^^ PLC2403 | ||
11 | from os.path import los # OK | ||
| | ||
|
||
|
||
= help: Use an ASCII-only alias |
Oops, something went wrong.