Use is not instead of not ... is

Proprietary

Replace 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.ReplaceNotIsTest
mod run . --recipe=org.openrewrite.python.cleanup.ReplaceNotIsTest

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.