not-is-test
What it does
Section titled “What it does”Reports an identity test negated in front of the expression: not a is b.
Why it matters
Section titled “Why it matters”a is not b is the operator for it. The prefix form is the same test, but a reader may take it as (not a) is b.
To fix, write a is not b.
Example
Section titled “Example”a = b = 1not a is bnot a is not ba is not bConfiguration
Section titled “Configuration”python: lint: rules: not-is-test: warn # off (default), warn, errorSuppress one line with sudsy-disable-next-line not-is-test in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| ruff | E714 |
full |