{ "name": "ruff", "runtime": "component", "exports": { "run": { "description": "Execute arbitrary literal CLI arguments.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "array", "items": { "type": "string" }, "description": "Output artifacts to collect as NAME=PATH entries; names must be unique." }, "arguments": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1, "description": "Literal native CLI argument tokens, passed without shell expansion." } }, "required": [ "runDir", "arguments" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "version": { "description": "Print the CLI version.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "array", "items": { "type": "string" }, "description": "Output artifacts to collect as NAME=PATH entries; names must be unique." } }, "required": [ "runDir" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "check": { "description": "Lint Python sources; fixes require fix=true.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "array", "items": { "type": "string" }, "description": "Output artifacts to collect as NAME=PATH entries; names must be unique." }, "config": { "type": "string", "minLength": 1, "description": "Named configuration selected by the native tool." }, "select": { "type": "string", "minLength": 1, "description": "Select supplied to the ruff check operation." }, "ignore": { "type": "string", "minLength": 1, "description": "Ignore supplied to the ruff check operation." }, "outputFormat": { "type": "string", "minLength": 1, "description": "Output Format supplied to the ruff check operation." }, "fix": { "type": "boolean", "description": "Fix supplied to the ruff check operation." }, "files": { "type": "array", "items": { "type": "string", "minLength": 1 }, "default": [ "." ], "description": "Files selected for the native operation; paths are passed literally without shell expansion. Default: [\".\"]." } }, "required": [ "runDir" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "format": { "description": "Format Python sources.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "array", "items": { "type": "string" }, "description": "Output artifacts to collect as NAME=PATH entries; names must be unique." }, "config": { "type": "string", "minLength": 1, "description": "Named configuration selected by the native tool." }, "lineLength": { "type": "integer", "minimum": 1, "description": "Line Length supplied to the ruff format operation." }, "files": { "type": "array", "items": { "type": "string", "minLength": 1 }, "default": [ "." ], "description": "Files selected for the native operation; paths are passed literally without shell expansion. Default: [\".\"]." } }, "required": [ "runDir" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "format_check": { "description": "Check Python formatting without writing files.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "array", "items": { "type": "string" }, "description": "Output artifacts to collect as NAME=PATH entries; names must be unique." }, "config": { "type": "string", "minLength": 1, "description": "Named configuration selected by the native tool." }, "files": { "type": "array", "items": { "type": "string", "minLength": 1 }, "default": [ "." ], "description": "Files selected for the native operation; paths are passed literally without shell expansion. Default: [\".\"]." } }, "required": [ "runDir" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } } } }