| 1 |
{ |
| 2 |
"$schema": "https://docs.renovatebot.com/renovate-schema.json", |
| 3 |
|
| 4 |
// Baseline Renovate behavior: sane defaults, vulnerability alerts, lockfile handling, |
| 5 |
// and common grouping/deduplication rules. |
| 6 |
"extends": ["config:recommended"], |
| 7 |
|
| 8 |
// Keep scheduling deterministic for maintainers in Europe. |
| 9 |
"timezone": "UTC", |
| 10 |
|
| 11 |
// Keep the PR backlog visible in one place, especially when major updates are gated below. |
| 12 |
"dependencyDashboard": true, |
| 13 |
|
| 14 |
// Match the current ANTA dependency surfaces intentionally. |
| 15 |
// pre-commit is included explicitly for additional_dependencies only; hook rev |
| 16 |
// updates stay with pre-commit.ci. |
| 17 |
"enabledManagers": ["pep621", "github-actions", "pre-commit"], |
| 18 |
|
| 19 |
// Renovate's pre-commit manager is disabled by default. Keep it enabled only |
| 20 |
// because we disable hook repository rev updates below. |
| 21 |
"pre-commit": { |
| 22 |
"enabled": true |
| 23 |
}, |
| 24 |
|
| 25 |
// Dependabot currently has a 7-day cooldown for both Python and Actions updates. |
| 26 |
// Renovate's equivalent is to wait until a release is at least 7 days old. |
| 27 |
"minimumReleaseAge": "7 days", |
| 28 |
|
| 29 |
// Prevent dependency automation from flooding the PR queue. |
| 30 |
"prConcurrentLimit": 5, |
| 31 |
"prHourlyLimit": 2, |
| 32 |
|
| 33 |
// Refresh uv.lock periodically even when no pyproject.toml range needs changing. |
| 34 |
// If this becomes noisy, set this back to false and rely on normal dependency PRs. |
| 35 |
"lockFileMaintenance": { |
| 36 |
"enabled": true, |
| 37 |
"schedule": ["before 5am on monday"] |
| 38 |
}, |
| 39 |
|
| 40 |
"packageRules": [ |
| 41 |
{ |
| 42 |
"description": "Shared metadata for Python dependencies from pyproject.toml.", |
| 43 |
"matchManagers": ["pep621"], |
| 44 |
"labels": ["dependencies"], |
| 45 |
"reviewers": ["team:anta-maintainers"], |
| 46 |
"commitMessagePrefix": "chore:", |
| 47 |
"schedule": ["before 5am every weekday"] |
| 48 |
}, |
| 49 |
{ |
| 50 |
"description": "Runtime dependencies define the minimum versions supported by the published project. Keep lower bounds stable for in-range updates and widen capped ranges when needed.", |
| 51 |
"matchManagers": ["pep621"], |
| 52 |
// [project].dependencies and [project].optional-dependencies, e.g. cli extras. |
| 53 |
"matchDepTypes": ["project.dependencies", "project.optional-dependencies"], |
| 54 |
"rangeStrategy": "auto" |
| 55 |
}, |
| 56 |
{ |
| 57 |
"description": "Build-system requirements are feature minimums for building the package, not routine tooling versions. Keep setuptools pinned to the minimum version we actually require.", |
| 58 |
"matchManagers": ["pep621"], |
| 59 |
// [build-system].requires, e.g. setuptools>=77.0.0. |
| 60 |
"matchDepTypes": ["build-system.requires"], |
| 61 |
"enabled": false |
| 62 |
}, |
| 63 |
{ |
| 64 |
"description": "Python runtime support is a project compatibility policy, not dependency freshness. Keep requires-python manual.", |
| 65 |
"matchManagers": ["pep621"], |
| 66 |
// [project].requires-python, e.g. >=3.10. |
| 67 |
"matchDepTypes": ["requires-python"], |
| 68 |
"enabled": false |
| 69 |
}, |
| 70 |
{ |
| 71 |
"description": "Dependency groups are repo tooling, so keep their minimum versions moving while preserving the existing range shape.", |
| 72 |
"matchManagers": ["pep621"], |
| 73 |
// [dependency-groups], e.g. lint/test/dev/doc. |
| 74 |
"matchDepTypes": ["dependency-groups"], |
| 75 |
"rangeStrategy": "bump" |
| 76 |
}, |
| 77 |
{ |
| 78 |
"description": "Group non-major Python tooling updates from dependency groups.", |
| 79 |
"matchManagers": ["pep621"], |
| 80 |
// Keep matchUpdateTypes separate from rangeStrategy; Renovate rejects using both in the same packageRule. |
| 81 |
"matchDepTypes": ["dependency-groups"], |
| 82 |
"matchUpdateTypes": ["minor", "patch"], |
| 83 |
"groupName": "Python tooling dependencies", |
| 84 |
"groupSlug": "python-tooling" |
| 85 |
}, |
| 86 |
{ |
| 87 |
"description": "GitHub Actions currently use SHA pins with version comments; keep that security posture.", |
| 88 |
"matchManagers": ["github-actions"], |
| 89 |
"labels": ["CI"], |
| 90 |
"reviewers": ["team:anta-maintainers"], |
| 91 |
"commitMessagePrefix": "ci:", |
| 92 |
"pinDigests": true, |
| 93 |
"schedule": ["before 5am on monday"] |
| 94 |
}, |
| 95 |
{ |
| 96 |
"description": "Let pre-commit.ci keep handling hook rev autoupdates.", |
| 97 |
"matchManagers": ["pre-commit"], |
| 98 |
"matchDepTypes": ["repository"], |
| 99 |
"enabled": false |
| 100 |
}, |
| 101 |
{ |
| 102 |
"description": "pre-commit Python additional_dependencies only; hook rev updates stay with pre-commit.ci.", |
| 103 |
"matchManagers": ["pre-commit"], |
| 104 |
"matchDepTypes": ["pre-commit-python"], |
| 105 |
"labels": ["CI"], |
| 106 |
"reviewers": ["team:anta-maintainers"], |
| 107 |
"commitMessagePrefix": "ci:", |
| 108 |
"rangeStrategy": "bump", |
| 109 |
"schedule": ["before 5am on monday"] |
| 110 |
}, |
| 111 |
{ |
| 112 |
"description": "Keep breaking dependency changes deliberate instead of auto-opening noisy PRs.", |
| 113 |
"matchUpdateTypes": ["major"], |
| 114 |
"dependencyDashboardApproval": true |
| 115 |
} |
| 116 |
] |
| 117 |
} |