Remove redundant pass statements
Recipe ID
org.openrewrite.python.RemovePassArtifactopenrewriteRemove redundant pass statements from Python code when there are other executable statements in the block.
Single recipeProprietary
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.RemovePassIf the recipe isn’t available locally, install it with:
mod config recipes pip install openrewrite