Codewerk
ruff
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. Check mode returns diagnostics from Ruff JSON output (Pyflakes F, pycodestyle E/W, isort I, bugbear B, pyupgrade UP and every other selectable Ruff rule) with fix applicability; format mode returns the code formatted like Black. Selectors, ignores, target Python version and line length are configurable; unknown.
POST https://code.halowerk.com/v1/ruffInputs
| Field | Type | Required | Description |
|---|---|---|---|
| code | string | Yes | Python source (max. 1 MB). |
| mode | string | No | Lint, format or both. |
| select | array | No | Rule selectors (default Ruff defaults: E4, E7, E9, F). |
| ignore | array | No | Rule selectors to ignore. |
| target_version | string | No | Minimum Python version of the code. |
| line_length | integer | No | Line length for E501 and the formatter. |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"minLength": 1,
"maxLength": 1000000,
"description": "Python source (max. 1 MB)."
},
"mode": {
"type": "string",
"enum": [
"check",
"format",
"both"
],
"default": "both",
"description": "Lint, format or both."
},
"select": {
"type": "array",
"maxItems": 60,
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^(ALL|[A-Z]{1,4}[0-9]{0,4})$"
},
"description": "Rule selectors (default Ruff defaults: E4, E7, E9, F)."
},
"ignore": {
"type": "array",
"maxItems": 100,
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^[A-Z]{1,4}[0-9]{0,4}$"
},
"description": "Rule selectors to ignore."
},
"target_version": {
"type": "string",
"enum": [
"py37",
"py38",
"py39",
"py310",
"py311",
"py312",
"py313",
"py314"
],
"default": "py312",
"description": "Minimum Python version of the code."
},
"line_length": {
"type": "integer",
"minimum": 40,
"maximum": 320,
"default": 88,
"description": "Line length for E501 and the formatter."
}
}
}Published input example
{
"code": "import os, sys\n\ndef f(x):\n if x == None:\n return undefined_name\n return sys.argv\n",
"select": [
"E",
"F"
]
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Codewerk0.003 USDC
action sha pin
POSThttps://code.halowerk.com/v1/action-sha-pinFinds every "uses: owner/repo[/path]@ref" in a GitHub Actions workflow, resolves tags (including annotated tags) and branches to the commit SHA with git ls-remote against github.com, and rewrites the line to "uses: owner/repo[/path]@<sha> #
- Codewerk0.003 USDC
actionlint
POSThttps://code.halowerk.com/v1/actionlintRuns the official statically linked actionlint 1.7.12 release binary (MIT, SHA-256 checked against the published checksums) in an isolated child process without network, with the bundled ShellCheck 0.11.0 for run: scripts (pyflakes is not a
- Codewerk0.004 USDC
api changelog
POSThttps://code.halowerk.com/v1/api-changelogCompares operations, parameters, request bodies, response codes and media types, component schemas (one property level), servers and security schemes of two documents (Swagger 2.0 is converted with swagger2openapi first; 3.0 and 3.1 are rea