|
| 1 | +{ |
| 2 | + $schema: 'https://docs.renovatebot.com/renovate-schema.json', |
| 3 | + |
| 4 | + // Always enable the dependency dashboard. |
| 5 | + dependencyDashboard: true, |
| 6 | + |
| 7 | + extends: [ |
| 8 | + // https://docs.renovatebot.com/presets-config/#configbest-practices |
| 9 | + 'config:best-practices', |
| 10 | + // https://docs.renovatebot.com/presets-helpers/#helperspingithubactiondigeststosemver |
| 11 | + 'helpers:pinGitHubActionDigestsToSemver', |
| 12 | + ], |
| 13 | + |
| 14 | + // Default range strategy for dependencies. |
| 15 | + // NOTE: We override the range strategy from best-practices here (and below), |
| 16 | + // because it results in exceedingly noisy updates to non-lockfile dependency files. |
| 17 | + rangeStrategy: 'auto', |
| 18 | + |
| 19 | + // Additionally, we set the range strategy for cargo to 'update-lockfile' to avoid |
| 20 | + // unnecessary updates to Cargo.toml files. |
| 21 | + cargo: { |
| 22 | + rangeStrategy: 'update-lockfile', |
| 23 | + }, |
| 24 | + |
| 25 | + // We apply a default blanket cooldown of 7 days to all dependencies. |
| 26 | + minimumReleaseAge: '7 days', |
| 27 | + |
| 28 | + internalChecksFilter: 'strict', |
| 29 | + |
| 30 | + // PR settings. |
| 31 | + // Our PRs are created immediately. We do this instead of not-pending because the latter |
| 32 | + // makes Renovate wait an additional 24 hours before creating the PR when there are no checks. |
| 33 | + prCreation: 'immediate', |
| 34 | + prHourlyLimit: 10, |
| 35 | + prConcurrentLimit: 5, |
| 36 | + |
| 37 | + // Conventions: we generally don't use semantic commits, and we add an "internal" label to all dependency update PRs. |
| 38 | + semanticCommits: 'disabled', |
| 39 | + addLabels: ['internal'], |
| 40 | + |
| 41 | + separateMajorMinor: false, |
| 42 | + |
| 43 | + // These notifications are very noisy. |
| 44 | + suppressNotifications: ['prEditedNotification'], |
| 45 | + |
| 46 | + // Lock file maintenance configuration |
| 47 | + lockFileMaintenance: { |
| 48 | + enabled: false, |
| 49 | + schedule: ['before 4am on monday'], |
| 50 | + }, |
| 51 | + |
| 52 | + packageRules: [ |
| 53 | + // All lock file maintenance: group PRs by manager. |
| 54 | + { |
| 55 | + description: 'Group lockfile updates by manager', |
| 56 | + matchUpdateTypes: ['lockFileMaintenance'], |
| 57 | + groupName: '{{manager}} lockfile updates', |
| 58 | + commitMessageSuffix: 'for {{manager}}', |
| 59 | + }, |
| 60 | + // Python: disable minimum release age for our own packages. |
| 61 | + { |
| 62 | + description: 'Disable minimum release age checks for our own Python packages', |
| 63 | + matchDatasources: ['pypi'], |
| 64 | + matchPackageNames: ['ruff', 'uv', 'ty'], |
| 65 | + minimumReleaseAge: null, |
| 66 | + }, |
| 67 | + // pre-commit: disable minimum release age for our own pre-commit hooks. |
| 68 | + { |
| 69 | + description: 'Disable minimum release age checks for our own pre-commit hooks', |
| 70 | + matchManagers: ['pre-commit'], |
| 71 | + matchPackageNames: [ |
| 72 | + 'astral-sh/ruff-pre-commit', |
| 73 | + 'astral-sh/uv-pre-commit', |
| 74 | + 'astral-sh/ty-pre-commit', |
| 75 | + ], |
| 76 | + }, |
| 77 | + ], |
| 78 | + |
| 79 | + vulnerabilityAlerts: { |
| 80 | + enabled: true, |
| 81 | + vulnerabilityFixStrategy: 'lowest', |
| 82 | + }, |
| 83 | +} |
0 commit comments