From 0fe2b156765c6746fcff51a04085a3b3acf0f101 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Fri, 18 Nov 2022 18:23:40 -0500 Subject: [PATCH] Change NotInTest to NotIsTest --- src/pycodestyle/plugins.rs | 2 +- src/snapshots/ruff__linter__tests__E714_E714.py.snap | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pycodestyle/plugins.rs b/src/pycodestyle/plugins.rs index d1b2fddf35..b6a6bd3d93 100644 --- a/src/pycodestyle/plugins.rs +++ b/src/pycodestyle/plugins.rs @@ -241,7 +241,7 @@ pub fn not_tests( Cmpop::Is => { if check_not_is { 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 let Some(content) = compare(left, &[Cmpop::IsNot], comparators) { check.amend(Fix::replacement( diff --git a/src/snapshots/ruff__linter__tests__E714_E714.py.snap b/src/snapshots/ruff__linter__tests__E714_E714.py.snap index 69f406b624..2f6c9899cc 100644 --- a/src/snapshots/ruff__linter__tests__E714_E714.py.snap +++ b/src/snapshots/ruff__linter__tests__E714_E714.py.snap @@ -2,7 +2,7 @@ source: src/linter.rs expression: checks --- -- kind: NotInTest +- kind: NotIsTest location: row: 2 column: 7 @@ -19,7 +19,7 @@ expression: checks row: 2 column: 13 applied: false -- kind: NotInTest +- kind: NotIsTest location: row: 5 column: 7 @@ -36,7 +36,7 @@ expression: checks row: 5 column: 15 applied: false -- kind: NotInTest +- kind: NotIsTest location: row: 8 column: 7