Skip to content
Fourohtwo

Check and format Python code with the real Ruff 0.17.3

code.halowerk.com/v1/ruff

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.

BaseAnswering
POSThttps://code.halowerk.com/v1/ruff

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://code.halowerk.com/v1/ruff", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"code":"import os, sys\n\ndef f(x):\n    if x == None:\n        return undefined_name\n    return sys.argv\n","select":["E","F"]}),
});
console.log(await res.json());

Example input

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