mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-22 10:02:37 +00:00
Change NotInTest to NotIsTest
This commit is contained in:
parent
e81efa5a3d
commit
0fe2b15676
2 changed files with 4 additions and 4 deletions
|
@ -241,7 +241,7 @@ pub fn not_tests(
|
||||||
Cmpop::Is => {
|
Cmpop::Is => {
|
||||||
if check_not_is {
|
if check_not_is {
|
||||||
let mut check =
|
let mut check =
|
||||||
Check::new(CheckKind::NotInTest, Range::from_located(operand));
|
Check::new(CheckKind::NotIsTest, Range::from_located(operand));
|
||||||
if checker.patch() && should_fix {
|
if checker.patch() && should_fix {
|
||||||
if let Some(content) = compare(left, &[Cmpop::IsNot], comparators) {
|
if let Some(content) = compare(left, &[Cmpop::IsNot], comparators) {
|
||||||
check.amend(Fix::replacement(
|
check.amend(Fix::replacement(
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
source: src/linter.rs
|
source: src/linter.rs
|
||||||
expression: checks
|
expression: checks
|
||||||
---
|
---
|
||||||
- kind: NotInTest
|
- kind: NotIsTest
|
||||||
location:
|
location:
|
||||||
row: 2
|
row: 2
|
||||||
column: 7
|
column: 7
|
||||||
|
@ -19,7 +19,7 @@ expression: checks
|
||||||
row: 2
|
row: 2
|
||||||
column: 13
|
column: 13
|
||||||
applied: false
|
applied: false
|
||||||
- kind: NotInTest
|
- kind: NotIsTest
|
||||||
location:
|
location:
|
||||||
row: 5
|
row: 5
|
||||||
column: 7
|
column: 7
|
||||||
|
@ -36,7 +36,7 @@ expression: checks
|
||||||
row: 5
|
row: 5
|
||||||
column: 15
|
column: 15
|
||||||
applied: false
|
applied: false
|
||||||
- kind: NotInTest
|
- kind: NotIsTest
|
||||||
location:
|
location:
|
||||||
row: 8
|
row: 8
|
||||||
column: 7
|
column: 7
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue