Python lint (structured)
python_lintRun Ruff lint checks on Python projects and return compact structured diagnostics with file, line, column, message, and rule code; filter by severity and optionally auto-fix safe issues.
Instructions
Run ruff check and return structured diagnostics with file, line, column, message, and rule code. Much more compact than raw ruff output. Use minSeverity to filter by severity level.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Project root directory | |
| fix | No | Auto-fix safe issues (default: false) | |
| paths | No | Specific path(s) to lint; a string or array (default: '.') | |
| maxItems | No | Item cap; overrides detailLevel | |
| detailLevel | No | Item preset: summary 20, normal 100, full (default; also skips the response budget) | |
| minSeverity | No | Minimum severity to include (e.g. 'error' drops warnings and info) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | No | ||
| errors | Yes | ||
| retained | No | ||
| truncated | No | ||
| errorCount | Yes | ||
| fixedCount | Yes | ||
| warningCount | Yes |