← All recipes
Moderne licensed

Python cleanup suite

Recipe IDorg.openrewrite.python.cleanup.PythonBestPracticesArtifactopenrewrite-static-analysis

Run every Python cleanup recipe in one pass -- literal simplification, boolean and comparison tidying, dead code removal, naming fixes, pandas modernization, and more.

Composite recipepythoncleanupbest-practicesProprietary

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.cleanup.PythonBestPractices

If the recipe isn’t available locally, install it with:

mod config recipes pip install openrewrite-static-analysis

Definition

This recipe runs the following recipes in order.