ruff-format
Format Python code using Ruff's fast formatter, with optional configuration file for custom settings.
Instructions
Format Python code using RUFF's fast formatter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python code to format | |
| config_path | No | Optional path to RUFF configuration file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changed | Yes | Whether the code was modified during formatting | |
| formatted_code | Yes | The formatted Python code |