-
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.
## Summary This was accidentally committed under `W0117`, but the actual Pylint code is `W0177`: https://pylint.readthedocs.io/en/latest/user_guide/checkers/features.html. Closes #10791.
- Loading branch information
1 parent
563daa8
commit 312f434
Showing
6 changed files
with
88 additions
and
86 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
82 changes: 0 additions & 82 deletions
82
.../rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0117_nan_comparison.py.snap
This file was deleted.
Oops, something went wrong.
82 changes: 82 additions & 0 deletions
82
.../rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW0177_nan_comparison.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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/pylint/mod.rs | ||
--- | ||
nan_comparison.py:11:9: PLW0177 Comparing against a NaN value; use `math.isnan` instead | ||
| | ||
10 | # PLW0117 | ||
11 | if x == float("nan"): | ||
| ^^^^^^^^^^^^ PLW0177 | ||
12 | pass | ||
| | ||
|
||
nan_comparison.py:15:9: PLW0177 Comparing against a NaN value; use `math.isnan` instead | ||
| | ||
14 | # PLW0117 | ||
15 | if x == float("NaN"): | ||
| ^^^^^^^^^^^^ PLW0177 | ||
16 | pass | ||
| | ||
|
||
nan_comparison.py:19:9: PLW0177 Comparing against a NaN value; use `math.isnan` instead | ||
| | ||
18 | # PLW0117 | ||
19 | if x == float("NAN"): | ||
| ^^^^^^^^^^^^ PLW0177 | ||
20 | pass | ||
| | ||
|
||
nan_comparison.py:23:9: PLW0177 Comparing against a NaN value; use `math.isnan` instead | ||
| | ||
22 | # PLW0117 | ||
23 | if x == float("Nan"): | ||
| ^^^^^^^^^^^^ PLW0177 | ||
24 | pass | ||
| | ||
|
||
nan_comparison.py:27:9: PLW0177 Comparing against a NaN value; use `math.isnan` instead | ||
| | ||
26 | # PLW0117 | ||
27 | if x == math.nan: | ||
| ^^^^^^^^ PLW0177 | ||
28 | pass | ||
| | ||
|
||
nan_comparison.py:31:9: PLW0177 Comparing against a NaN value; use `math.isnan` instead | ||
| | ||
30 | # PLW0117 | ||
31 | if x == bad_val: | ||
| ^^^^^^^ PLW0177 | ||
32 | pass | ||
| | ||
|
||
nan_comparison.py:35:9: PLW0177 Comparing against a NaN value; use `np.isnan` instead | ||
| | ||
34 | # PLW0117 | ||
35 | if y == np.NaN: | ||
| ^^^^^^ PLW0177 | ||
36 | pass | ||
| | ||
|
||
nan_comparison.py:39:9: PLW0177 Comparing against a NaN value; use `np.isnan` instead | ||
| | ||
38 | # PLW0117 | ||
39 | if y == np.NAN: | ||
| ^^^^^^ PLW0177 | ||
40 | pass | ||
| | ||
|
||
nan_comparison.py:43:9: PLW0177 Comparing against a NaN value; use `np.isnan` instead | ||
| | ||
42 | # PLW0117 | ||
43 | if y == np.nan: | ||
| ^^^^^^ PLW0177 | ||
44 | pass | ||
| | ||
|
||
nan_comparison.py:47:9: PLW0177 Comparing against a NaN value; use `np.isnan` instead | ||
| | ||
46 | # PLW0117 | ||
47 | if y == npy_nan: | ||
| ^^^^^^^ PLW0177 | ||
48 | pass | ||
| |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.