coldpass

PyCQA/docformatter

GitHub ↗ · How this check works

Per-setup public labels: Linux / Haiku: Works

Static status badge · SVG · read-only JSON. Embed with ![Coldpass status](https://coldpass.dev/badge/PyCQA--docformatter.svg).

creative

Works

The recorded run passed on 1 setup.

Answers apply to each recorded setup, revision and operation. Earlier observations remain in Run details.

Tested on Linux
PlatformHaikuLuna
Linuxyes

Linux / Haiku 5.5: yes · Oct 27, 2026 · 82069d7f1e10 · claude-code / 2.1.310 (Claude Code)
Recorded operation: <guest-path>

Does what it says
1 of 1 claims checked out
  • docformatter formats docstrings to follow PEP 257: Real input produced the expected result: Main function.

    Source: Formats docstrings to follow `PEP 257`_.

    Input: def main(): """Main function""" pass

    Expected: Docstring summary becomes Main function. on one line

    Command: <guest-path> -

    Observed: Main function.""" pass

MCP
No
Local or hosted
local
Local: runs on your machine
Needs keys or browser
None seen
Maintained
Maintained
actively maintained: last commit 0 days ago; 52 commits and 35 merged PRs in 90 days; 20 open issues, 0 open PRs; 2 of 40 recent threads got a maintainer reply, median first reply 451.3h; latest release 2026-04-21

Last commit Oct 26, 2026

Setup time
1 min 18 s
1 min 18 s to a working result
Issue
none found in recorded check
Examples
1 of 1 ran as expected
  • Run docformatter in place on a file, as in the README example: command completed successfully with no output

    Source: README.rst

    Input: example.py (already formatted by the README example run)

    Expected: Already formatted file is left unchanged, exit 0

    Command: <guest-path> --in-place example.py

Evidence
README behavior checked
Agent interfaces
CLI
CLI

Observed interfaces were exercised by the checker. Documentation alone does not confirm compatibility.

Tested with
Claude Code / Haiku 5.5
  • Linux: Claude Code / Haiku 5.5 · agent 2.1.310 (Claude Code) · Checked operation passed · Oct 27, 2026 on 82069d7f1e10

Each entry describes its recorded operation and source revision.

Safety
No unexpected network or file activity found in these checks

No problems traced to this repository code in these checks; a short run cannot prove safety. 5 listed items (named-host connections, static matches, dependency advisories) are below and do not change this verdict.

OSV reports a known vulnerability in this dependency version. 2 distinct locations. 5 findings.

Reviewed as expected for a test run: attempted writes that failed, so nothing was written.

Full event, path and process lists for each observed setup:

Repair history and test corrections
Current diagnosis: test · test rerun did not pass

Final checker renamed a documented --in-place input to an absent replay path. Merged checker now seeds original input_text and requires an observed transformation; new the current test runtime is active.

Recorded action: Diagnose the linked test rerun evidence.

Repair record fix-cff2d854f6a210e7375f · current status JSON. Original run outcomes remain unchanged.

Run details

Haiku 5.5

Native agent · Checked operation passed

Checked operation <guest-path> -

Agent-reported scope: Format Python docstrings to PEP 257 style with the docformatter CLI

Run details
run
PyCQA--docformatter-claude-haiku-5-5-1793085742012966311
date
Oct 27, 2026
time to working
78.3s
product hosting / execution
Local command in the guest
recorded operation scope
product operation
model
claude-haiku-5-5
agent / version
claude-code / 2.1.310 (Claude Code)
platform
linux
reported cost
$0.010525
Recorded source
https://github.com/PyCQA/docformatter
Backend
hyperv
Tool transport
mcp-assigned-vm
Requested source pin (not an observed revision)
{"commit": "82069d7f1e105bd86c69fd9ae0587ca00da3c312", "url": "https://github.com/PyCQA/docformatter"}
Test version
readme-7b45bc806d9264dc108ae6e1f61f5d665e5494413f227ffc7946c638ea53ee2e
revision
82069d7f1e105bd86c69fd9ae0587ca00da3c312
Whose fault: not assigned · resolved

Safety: Review signals: 5 known vulnerability.

Review signals: 5 known vulnerability.

Reviewed as expected for a test run: attempted writes that failed, so nothing was written.

OSV reports a known vulnerability in this dependency version. 2 distinct locations. 5 findings.

OSV scanned supported lockfiles; unpinned dependencies and unsupported formats are outside this check.

A short run cannot establish that code is safe.

Connections show IP addresses; proxies can hide the final hostname.

Tracing covers dispatched commands and their children, not the whole OS; guest root can interfere with tracing.

Full safety evidence →

Answers recorded for this run
  • docformatter formats docstrings to follow PEP 257: Real input produced the expected result: Main function.

    Source: Formats docstrings to follow `PEP 257`_.

    Input: def main(): """Main function""" pass

    Expected: Docstring summary becomes Main function. on one line

    Command: <guest-path> -

    Observed: Main function.""" pass

Examples

  • Run docformatter in place on a file, as in the README example: command completed successfully with no output

    Source: README.rst

    Input: example.py (already formatted by the README example run)

    Expected: Already formatted file is left unchanged, exit 0

    Command: <guest-path> --in-place example.py

Local or hosted: local

What the agent did

Format Python docstrings to PEP 257 style with the docformatter CLI

cd <guest-path> && pwd && ls -la && git status 2>&1 | head -3; id -u; python3 --version; echo CDP=$CDP_URL; cat README.md | head -c 6000
cd <guest-path> && cat README.rst | head -c 7200
cd <guest-path> && ls .coldpass; grep -n -i "python_requires\|requires-python\|scripts\|docformatter =" pyproject.toml; ls /inputs 2>&1; ls <guest-path> 2>&1
cd <guest-path> && sed -n 1,30p pyproject.toml; grep -n "python" pyproject.toml | head; ls -la .coldpass; python3 -m venv --help >/dev/null 2>&1 && echo venv_ok || echo venv_missing
python3 -m venv <guest-path> && <guest-path> install -q --upgrade pip 2>&1 | tail -3; <guest-path> install <guest-path> 2>&1 | tail -4; <guest-path> --version
mkdir -p <guest-path> && cd <guest-path> && cat > example.py <<'EOF'
"""   Here are some examples.

    This module docstring should be dedented."""


def factorial(x):
    '''

    Return x factorial.

    This uses math.factorial.

    '''
    import math
    return math.factorial(x)


def print_factorial(x):
    """Print x factorial"""
    print(factorial(x))


def main():
    """Main
    function"""
    print_factorial(5)
    if factorial(10):
        print_factorial(22)
EOF
cp example.py example.orig.py && <guest-path> --in-place example.py; echo rc=$?; cat example.py
cd <guest-path> && grep -rn -i "exit\|returncode\|status code" <guest-path> --include=*.rst | head -8; printf 'def f(x):\n    """Print x factorial"""\n    return x\n' | <guest-path> -; echo rc=$?; printf 'def f(x):\n    """Print x factorial"""\n    return x\n' > s.py && <guest-path> --check s.py; echo rc=$?
sed -n 103,120p <guest-path>
cd <guest-path> && wc -l check.py && grep -n "source_file\|README\|expected_returncode\|output_directory\|stays_running" check.py | head -40
cd <guest-path> && grep -rn "stdin\|docformatter -\b" docs/source/*.rst | head -5; grep -n "PEP 257\`_\." README.rst
mkdir -p <guest-path> && cd <guest-path> && cat > claims.json <<'EOF'
[{"kind":"claim","claim":"docformatter formats docstrings to follow PEP 257","source":"Formats docstrings to follow `PEP 257`_.","source_file":"README.rst","input":"def main():\n    \"\"\"Main\n    function\"\"\"\n    pass\n","expected":"Docstring summary becomes Main function. on one line","probe_kind":"cli","argv":["<guest-path>","-"],"stdin":"def main():\n    \"\"\"Main\n    function\"\"\"\n    pass\n","expected_text":"Main function.","cwd":"<guest-path>"}]
EOF
cat > probe.json <<'EOF'
{"kind":"cli","argv":["<guest-path>","-"],"cwd":"<guest-path>","stdin":"def main():\n    \"\"\"Main\n    function\"\"\"\n    pass\n","expected_text":"Main function."}
EOF
cat > examples.json <<'EOF'
[{"kind":"example","claim":"Run docformatter in place on a file, as in the README example","source":"README.rst","input":"example.py (already formatted by the README example run)","expected":"Already formatted file is left unchanged, exit 0","argv":["<guest-path>","--in-place","example.py"],"cwd":"<guest-path>","env":{},"expected_text":""}]
EOF
cat > cycles.json <<'EOF'
{"detected":false,"reason":"Entry points inspected (pyproject.toml scripts: docformatter=docformatter.__main__:main; README.rst). docformatter is a one-shot CLI with no cron, scheduler, loop, webhook or --once/--now mode; its only recurring use is an external PyCharm file watcher (docs/source/usage.rst), which is not a product cycle.","checks":[]}
EOF
for f in claims.json probe.json examples.json cycles.json; do python3 -I -m json.tool $f >/dev/null && echo "$f ok"; done
cd <guest-path> && sed -i 's/,"expected_text":""}]/}]/' .coldpass/examples.json && python3 -I -m json.tool .coldpass/examples.json >/dev/null && <env-var>=<guest-path> python3 -I <guest-path> --validate --replay 2>&1 | tail -c 4000
cd <guest-path> && cat > report.json <<'EOF'
{"outcome":"working","fault_owner":null,"operation":"Format Python docstrings to PEP 257 style with the docformatter CLI","operation_scope":"Local CLI on Python 3.12.3 (pyproject requires ^3.10) in a venv at <guest-path>; no browser, credentials or network service needed. Source is the checked-out snapshot in <guest-path> (no git metadata present, so the pinned commit 82069d7f1e105bd86c69fd9ae0587ca00da3c312 was not independently verified).","steps":["python3 -m venv <guest-path>","<guest-path> install <guest-path>  (built docformatter 1.7.8)","<guest-path> --in-place example.py  (README example; exit 3 = file changed, as documented in docs/source/usage.rst)","printf source | <guest-path> -  (stdin mode; returned formatted docstring 'Main function.')"],"deviations":["Installed from the local checkout with pip rather than PyPI 'pip install --upgrade docformatter', so the pinned source was tested.","The /inputs/coldpass-preflight.py path given in the task does not exist; ran <guest-path> as the task's command instructed.","Cycles: none detected (one-shot CLI); recorded detected=false."],"stuck_step":null,"main_blocker":null,"plain_failure":null,"suggested_fix":null}
EOF
python3 -I -m json.tool report.json >/dev/null && echo ok; ls -la <guest-path>