← Back to directory

Check and format Python code with the real Ruff 0.17.3: diagnostics with rule co...

https://code.halowerk.com/v1/ruff

Overview

Check and format Python code with the real Ruff 0.17.3: diagnostics with rule code, position, docs link and fix safety, plus the Black-compatible formatted source. Runs the official statically linked Ruff 0.17.3 release binary (MIT, SHA-256 checked) in isolated mode (no configuration files) in a resource-limited child process without network.

Protocol x402 (POST)
Price $0.0030
Payment Asset USD Coin
Payment Network Base
Category uncategorized
Provider code
Source bazaar
Indexed 2026-11-20 14:09:44

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "code": "import os, sys\n\ndef f(x):\n if x == None:\n return undefined_name\n return sys.argv\n", "select": [ "E", "F" ] }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "result": { "counts": { "E401": 1, "E711": 1, "F401": 1, "F821": 1 }, "diagnostics": [ { "code": "E401", "column": 1, "end_column": 15, "end_line": 1, "fix": { "applicability": "safe", "message": "Split imports" }, "line": 1, "message": "Multiple imports on one line", "url": "https://docs.astral.sh/ruff/rules/multiple-imports-on-one-line" }, { "code": "F401", "column": 8, "end_column": 10, "end_line": 1, "fix": { "applicability": "safe", "message": "Remove unused import: `os`" }, "line": 1, "message": "`os` imported but unused", "url": "https://docs.astral.sh/ruff/rules/unused-import" }, { "code": "E711", "column": 13, "end_column": 17, "end_line": 4, "fix": { "applicability": "unsafe", "message": "Replace with `cond is None`" }, "line": 4, "message": "Comparison to `None` should be `cond is None`", "url": "https://docs.astral.sh/ruff/rules/none-comparison" }, { "code": "F821", "column": 16, "end_column": 30, "end_line": 5, "fix": null, "line": 5, "message": "Undefined name `undefined_name`", "url": "https://docs.astral.sh/ruff/rules/undefined-name" } ], "formatted": { "changed": true, "code": "import os, sys\n\n\ndef f(x):\n if x == None:\n return undefined_name\n return sys.argv\n" }, "mode": "both", "syntax_error": false, "target_version": "py312", "tool": "Ruff 0.17.3" }, "service": "ruff", "status": "success" }, "type": "json" }