Find functools.cmp_to_key() usage
Recipe ID
org.openrewrite.python.migrate.FindFunctoolsCmpToKeyArtifactopenrewrite-migrate-pythonFind usage of functools.cmp_to_key() which is a Python 2 compatibility function. Consider using a key function directly.
Single recipepythonfunctoolscode-qualityProprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.python.migrate.FindFunctoolsCmpToKeyIf the recipe isn’t available locally, install it with:
mod config recipes pip install openrewrite-migrate-python