Skip to content

Commit 66794bc

Browse files
Remove erroneous bad-dunder-name reference (#8742)
Closes #8731.
1 parent dca430f commit 66794bc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

crates/ruff_linter/src/rules/pylint/rules/bad_dunder_method_name.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl Violation for BadDunderMethodName {
4444
#[derive_message_formats]
4545
fn message(&self) -> String {
4646
let BadDunderMethodName { name } = self;
47-
format!("Bad or misspelled dunder method name `{name}`. (bad-dunder-name)")
47+
format!("Bad or misspelled dunder method name `{name}`")
4848
}
4949
}
5050

crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLW3201_bad_dunder_method_name.py.snap

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
source: crates/ruff_linter/src/rules/pylint/mod.rs
33
---
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_`
55
|
66
4 | class Apples:
77
5 | def _init_(self): # [bad-dunder-name]
88
| ^^^^^^ PLW3201
99
6 | pass
1010
|
1111

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__`
1313
|
1414
6 | pass
1515
7 |
@@ -18,7 +18,7 @@ bad_dunder_method_name.py:8:9: PLW3201 Bad or misspelled dunder method name `__h
1818
9 | print("hello")
1919
|
2020

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_`
2222
|
2323
9 | print("hello")
2424
10 |
@@ -28,7 +28,7 @@ bad_dunder_method_name.py:11:9: PLW3201 Bad or misspelled dunder method name `__
2828
13 | pass
2929
|
3030

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_`
3232
|
3333
13 | pass
3434
14 |
@@ -38,7 +38,7 @@ bad_dunder_method_name.py:15:9: PLW3201 Bad or misspelled dunder method name `_i
3838
17 | pass
3939
|
4040

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__`
4242
|
4343
17 | pass
4444
18 |
@@ -48,7 +48,7 @@ bad_dunder_method_name.py:19:9: PLW3201 Bad or misspelled dunder method name `__
4848
21 | pass
4949
|
5050

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__`
5252
|
5353
21 | pass
5454
22 |

0 commit comments

Comments
 (0)