Drop unnecessary step 1 argument from range()
Recipe ID
org.openrewrite.python.cleanup.RemoveUnitStepFromRangeArtifactopenrewrite-static-analysisShorten range(a, b, 1) to range(a, b) because range already defaults to a step of one.
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.cleanup.RemoveUnitStepFromRangeIf the recipe isn’t available locally, install it with:
mod config recipes pip install openrewrite-static-analysis