{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": [
    "config:best-practices"
  ],
  "rebaseWhen": "never",
  "lockFileMaintenance": {
    "enabled": true
  },
  "pre-commit": {
    "enabled": false
  },
  "packageRules": [
    {
      "description": "Update renovate only weekly",
      "matchDepNames": ["ghcr.io/renovatebot/renovate"],
      "extends": ["schedule:weekly"]
    },
    {
      "description": "Automerge renovate updates",
      "matchPackageNames": [
        "ghcr.io/renovatebot/renovate"
      ],
      "matchUpdateTypes": [
        "minor",
        "patch",
        "digest"
      ],
      "automerge": true
    },
    {
      "matchUpdateTypes": ["minor", "patch"],
      "automerge": true
    },
    {
      "matchFileNames": [".gitea/workflows/build.yml"],
      "enabled": false,
      "description": "Disabled because download-artifact@v4 is not working"
    },
    {
      "matchFileNames": [".python-version"],
      "enabled": false
    },
    {
      "matchManagers": ["poetry", "pyenv"],
      "enabled": false
    },
    {
      "matchManagers": ["pep621"],
      "rangeStrategy": "bump",
      "versioning": "pep440",
      "groupName": "Python dependencies"
    },
    {
      "matchPackageNames": ["numpy", "setuptools", "python", "pyside6"],
      "enabled": false,
      "description": "Disabled due to Python 3.10 incompatibility with numpy>=2.3.2 (requires Python>=3.11)"
    },
    {
      "matchDatasources": ["github-runners", "python-version"],
      "enabled": false,
      "description": "Prevent Renovate from updating runs-on to unsupported ubuntu-24.04"
    }
  ]
}
