Use is not instead of not ... is
ProprietaryReplace not x is y with x is not y. The is not operator is clearer than negating an is test. A chained comparison such as not a is b is c is left alone.
org. openrewrite. python. cleanup. ReplaceNotIsTestmod run . --recipe= org. openrewrite. python. cleanup. ReplaceNotIsTestInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.