quality_fix
Apply deterministic code quality fixes using Ruff formatting and safe fixes on specified files to enforce coding standards.
Instructions
Run deterministic allow-listed quality commands such as Ruff format and safe fixes over a bounded file set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Optional repo-relative or absolute file paths to focus on. Absolute paths must stay under repo_path. | |
| commands | No | Quality commands to run. Defaults to ruff_format and ruff_safe_fix. | |
| repo_path | Yes | Absolute path to the repository/workspace. | |
| timeout_sec | No | Timeout in seconds. Defaults to 120; capped at 900. | |
| allow_repo_wide | No | Allow running commands over the whole repo with target '.'. Defaults to false. | |
| max_output_chars | No | Maximum returned output characters. Defaults to 30000; capped at 100000. | |
| include_diff_stat | No | Include git diff --stat after commands. Defaults to true. | |
| max_changed_files | No | Maximum newly dirty files allowed. Defaults to 20; capped at 200. | |
| allow_unsafe_fixes | No | Required to run ruff_unsafe_fix. Defaults to false. |