← All recipes
Moderne licensed

Remove redundant pass statements

Recipe IDorg.openrewrite.python.RemovePassArtifactopenrewrite

Remove 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.RemovePass

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

mod config recipes pip install openrewrite