{
  "scope": "Git / Ruff / pytest · 一次性工作区",
  "input": "def fee(amount):\n    return 0 if amount > 100 else 5\n",
  "result": [
    {
      "command": "git -c core.hooksPath=/dev/null diff --cached",
      "exit": 0,
      "output": "diff --git a/amount.py b/amount.py\nindex 4c2c134..3c167d1 100644\n--- a/amount.py\n+++ b/amount.py\n@@ -1,2 +1,2 @@\n def fee(amount):\n-    return 0 if amount > 100 else 5\n+    return 0 if amount >= 100 else 5"
    },
    {
      "command": "git -c core.hooksPath=/dev/null diff",
      "exit": 0,
      "output": "diff --git a/amount.py b/amount.py\nindex 3c167d1..012f7d1 100644\n--- a/amount.py\n+++ b/amount.py\n@@ -1,2 +1,2 @@\n def fee(amount):\n-    return 0 if amount >= 100 else 5\n+    return 0 if amount >= 100 else 7"
    }
  ],
  "checks": {
    "暂存区有门槛修正": true,
    "工作树另有费率变化": true
  }
}
