{
  "scope": "Git / Ruff / pytest · 一次性工作区",
  "input": "def fee(amount):\n    return 0 if amount > 100 else 5\n",
  "result": [
    {
      "command": "python -m ruff check --diff amount.py",
      "exit": 1,
      "output": "--- amount.py\n+++ amount.py\n@@ -1,4 +1,3 @@\n-import os\n \n def fee(amount):\n     return 0 if amount > 100 else 5\n\nWould fix 1 error."
    },
    {
      "command": "python -m ruff check --fix amount.py",
      "exit": 0,
      "output": "Found 1 error (1 fixed, 0 remaining)."
    },
    {
      "command": "python amount.py",
      "exit": 0,
      "output": "0"
    }
  ],
  "checks": {
    "预览未写文件且显示差异": true,
    "修复后脚本仍输出0": true
  }
}
