Remove erroneous bad-dunder-name reference (#8742) · astral-sh/ruff@66794bc (original) (raw)

Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
1 1 ---
2 2 source: crates/ruff_linter/src/rules/pylint/mod.rs
3 3 ---
4 -bad_dunder_method_name.py:5:9: PLW3201 Bad or misspelled dunder method name `_init_`. (bad-dunder-name)
4 +bad_dunder_method_name.py:5:9: PLW3201 Bad or misspelled dunder method name `_init_`
5 5 |
6 6 4 | class Apples:
7 7 5 | def _init_(self): # [bad-dunder-name]
8 8 | ^^^^^^ PLW3201
9 9 6 | pass
10 10 |
11 11
12 -bad_dunder_method_name.py:8:9: PLW3201 Bad or misspelled dunder method name `__hello__`. (bad-dunder-name)
12 +bad_dunder_method_name.py:8:9: PLW3201 Bad or misspelled dunder method name `__hello__`
13 13 |
14 14 6 | pass
15 15 7 |
@@ -18,7 +18,7 @@ bad_dunder_method_name.py:8:9: PLW3201 Bad or misspelled dunder method name `__h
18 18 9 | print("hello")
19 19 |
20 20
21 -bad_dunder_method_name.py:11:9: PLW3201 Bad or misspelled dunder method name `__init_`. (bad-dunder-name)
21 +bad_dunder_method_name.py:11:9: PLW3201 Bad or misspelled dunder method name `__init_`
22 22 |
23 23 9 | print("hello")
24 24 10 |
@@ -28,7 +28,7 @@ bad_dunder_method_name.py:11:9: PLW3201 Bad or misspelled dunder method name `__
28 28 13 | pass
29 29 |
30 30
31 -bad_dunder_method_name.py:15:9: PLW3201 Bad or misspelled dunder method name `_init_`. (bad-dunder-name)
31 +bad_dunder_method_name.py:15:9: PLW3201 Bad or misspelled dunder method name `_init_`
32 32 |
33 33 13 | pass
34 34 14 |
@@ -38,7 +38,7 @@ bad_dunder_method_name.py:15:9: PLW3201 Bad or misspelled dunder method name `_i
38 38 17 | pass
39 39 |
40 40
41 -bad_dunder_method_name.py:19:9: PLW3201 Bad or misspelled dunder method name `___neg__`. (bad-dunder-name)
41 +bad_dunder_method_name.py:19:9: PLW3201 Bad or misspelled dunder method name `___neg__`
42 42 |
43 43 17 | pass
44 44 18 |
@@ -48,7 +48,7 @@ bad_dunder_method_name.py:19:9: PLW3201 Bad or misspelled dunder method name `__
48 48 21 | pass
49 49 |
50 50
51 -bad_dunder_method_name.py:23:9: PLW3201 Bad or misspelled dunder method name `__inv__`. (bad-dunder-name)
51 +bad_dunder_method_name.py:23:9: PLW3201 Bad or misspelled dunder method name `__inv__`
52 52 |
53 53 21 | pass
54 54 22 |