Replace not x in y with x not in y

Proprietary

Replace not x in y with x not in y. The not in operator is clearer than negating an in test. A chained comparison such as not a in b in c is left alone.

org.openrewrite.python.cleanup.ReplaceNotInTest
mod run . --recipe=org.openrewrite.python.cleanup.ReplaceNotInTest

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