File: renovate.json5

package info (click to toggle)
python-telegram-bot 22.5-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 11,940 kB
  • sloc: python: 92,703; makefile: 179; sh: 4
file content (77 lines) | stat: -rw-r--r-- 2,544 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": [ // See what config:best-practices does: https://docs.renovatebot.com/presets-config/#configbest-practices
    "config:best-practices",
    // Opt-in to updating the pre-commit-config.yaml file too:
    ":enablePreCommit",
    ":prConcurrentLimitNone"  // No limits on the number of open PRs.
  ],

  // Add pull request labels:
  "labels": ["⚙️ ci-cd"],

  // Bump even patch versions:
  "bumpVersion": "patch",

  // Let Renovate decide how to update. See docs: https://docs.renovatebot.com/configuration-options/#rangestrategy
  "rangeStrategy": "auto",

  // Update the lock files:
  "lockFileMaintenance": {
    "enabled": true,
    "schedule": ["* 0-3 1 * *"],  // https://docs.renovatebot.com/presets-schedule/#schedulemonthly
    "automerge": true
  },

  // Enable automerge globally:
  "automerge": true,

  // Group package updates together:
  "packageRules": [
    // Linting dependencies in pyproject.toml in sync with the pre-commit-config hooks:
    // Unfortunately it seems we need to do this for every dependency group (https://github.com/python-telegram-bot/python-telegram-bot/pull/4887#discussion_r2272025832):
    {
      "description": "Group Ruff updates together",
      "matchPackageNames": ["ruff", "astral-sh/ruff-pre-commit"],
      "groupName": "Ruff"
    },
    {
      "description": "Group mypy updates together",
      "matchPackageNames": ["mypy", "pre-commit/mirrors-mypy"],
      "groupName": "Mypy"
    },
    {
      "description": "Group pylint updates together",
      "matchPackageNames": ["pylint", "PyCQA/pylint"],
      "groupName": "Pylint"
    },
    {
      "description": "Group chango updates together",
      "matchPackageNames": ["chango", "Bibo-Joshi/chango"],
      "groupName": "Chango"
    },

    // Don't automerge major updates for project dependencies:
    {
      "matchUpdateTypes": ["major"],
      "matchDepTypes": ["project.dependencies", "project.optional-dependencies"],
      "automerge": false
    },

    // Apply the "dependencies" label to all updates of optional/required dependencies:
    {
      "matchDepTypes": ["project.optional-dependencies", "project.dependencies"],
      "labels": ["⚙️ dependencies"]
    }
  ],

  // Increase the number of PR's Renovate can create in a hour. Default is 2.
  "prHourlyLimit": 5,

  // Temporarily disabled:
  "ignoreDeps": ["pytest-asyncio"],

  // schedule to allow PR's from Renovate:
  "schedule": ["* * * * 0,6"]  // Every weekend

}