|
1 | 1 | { |
2 | 2 | $schema: "https://docs.renovatebot.com/renovate-schema.json", |
3 | 3 | dependencyDashboard: true, |
4 | | - suppressNotifications: ["prEditedNotification"], |
5 | | - extends: ["config:recommended"], |
6 | | - labels: ["internal"], |
7 | | - schedule: ["before 4am on Monday"], |
| 4 | + suppressNotifications: [ |
| 5 | + "prEditedNotification" |
| 6 | + ], |
| 7 | + extends: [ |
| 8 | + "config:recommended" |
| 9 | + ], |
| 10 | + labels: [ |
| 11 | + "internal" |
| 12 | + ], |
| 13 | + schedule: [ |
| 14 | + "before 4am on Monday" |
| 15 | + ], |
8 | 16 | semanticCommits: "disabled", |
9 | 17 | separateMajorMinor: false, |
10 | 18 | prHourlyLimit: 10, |
11 | | - enabledManagers: ["github-actions", "pre-commit", "cargo", "pep621", "pip_requirements", "npm"], |
| 19 | + enabledManagers: [ |
| 20 | + "github-actions", |
| 21 | + "pre-commit", |
| 22 | + "cargo", |
| 23 | + "pep621", |
| 24 | + "pip_requirements", |
| 25 | + "npm" |
| 26 | + ], |
12 | 27 | cargo: { |
13 | 28 | // See https://docs.renovatebot.com/configuration-options/#rangestrategy |
14 | 29 | rangeStrategy: "update-lockfile", |
15 | 30 | }, |
16 | 31 | pep621: { |
17 | 32 | // The default for this package manager is to only search for `pyproject.toml` files |
18 | 33 | // found at the repository root: https://docs.renovatebot.com/modules/manager/pep621/#file-matching |
19 | | - fileMatch: ["^(python|scripts)/.*pyproject\\.toml$"], |
| 34 | + fileMatch: [ |
| 35 | + "^(python|scripts)/.*pyproject\\.toml$" |
| 36 | + ], |
20 | 37 | }, |
21 | 38 | pip_requirements: { |
22 | 39 | // The default for this package manager is to run on all requirements.txt files: |
|
29 | 46 | // - https://docs.renovatebot.com/modules/manager/#ignoring-files-that-match-the-default-filematch |
30 | 47 | // - https://docs.renovatebot.com/configuration-options/#ignorepaths |
31 | 48 | // - https://docs.renovatebot.com/string-pattern-matching/#negative-matching |
32 | | - ignorePaths: ["!docs/requirements*.txt"] |
| 49 | + ignorePaths: [ |
| 50 | + "!docs/requirements*.txt" |
| 51 | + ] |
33 | 52 | }, |
34 | 53 | npm: { |
35 | 54 | // The default for this package manager is to only search for `package.json` files |
36 | 55 | // found at the repository root: https://docs.renovatebot.com/modules/manager/npm/#file-matching |
37 | | - fileMatch: ["^playground/.*package\\.json$"], |
| 56 | + fileMatch: [ |
| 57 | + "^playground/.*package\\.json$" |
| 58 | + ], |
38 | 59 | }, |
39 | 60 | "pre-commit": { |
40 | 61 | enabled: true, |
41 | 62 | }, |
42 | 63 | packageRules: [ |
| 64 | + // Pin GitHub Actions to immutable SHAs. |
| 65 | + { |
| 66 | + matchDepTypes: [ |
| 67 | + "action" |
| 68 | + ], |
| 69 | + pinDigests: true, |
| 70 | + }, |
| 71 | + // Annotate GitHub Actions SHAs with a SemVer version. |
| 72 | + { |
| 73 | + extends: [ |
| 74 | + "helpers:pinGitHubActionDigests" |
| 75 | + ], |
| 76 | + extractVersion: "^(?<version>v?\\d+\\.\\d+\\.\\d+)$", |
| 77 | + versioning: "regex:^v?(?<major>\\d+)(\\.(?<minor>\\d+)\\.(?<patch>\\d+))?$", |
| 78 | + }, |
43 | 79 | { |
44 | 80 | // Group upload/download artifact updates, the versions are dependent |
45 | 81 | groupName: "Artifact GitHub Actions dependencies", |
46 | | - matchManagers: ["github-actions"], |
47 | | - matchDatasources: ["gitea-tags", "github-tags"], |
48 | | - matchPackageNames: ["actions/.*-artifact"], |
| 82 | + matchManagers: [ |
| 83 | + "github-actions" |
| 84 | + ], |
| 85 | + matchDatasources: [ |
| 86 | + "gitea-tags", |
| 87 | + "github-tags" |
| 88 | + ], |
| 89 | + matchPackageNames: [ |
| 90 | + "actions/.*-artifact" |
| 91 | + ], |
49 | 92 | description: "Weekly update of artifact-related GitHub Actions dependencies", |
50 | 93 | }, |
51 | 94 | { |
52 | 95 | // This package rule disables updates for GitHub runners: |
53 | 96 | // we'd only pin them to a specific version |
54 | 97 | // if there was a deliberate reason to do so |
55 | 98 | groupName: "GitHub runners", |
56 | | - matchManagers: ["github-actions"], |
57 | | - matchDatasources: ["github-runners"], |
| 99 | + matchManagers: [ |
| 100 | + "github-actions" |
| 101 | + ], |
| 102 | + matchDatasources: [ |
| 103 | + "github-runners" |
| 104 | + ], |
58 | 105 | description: "Disable PRs updating GitHub runners (e.g. 'runs-on: macos-14')", |
59 | 106 | enabled: false, |
60 | 107 | }, |
61 | 108 | { |
62 | 109 | // Disable updates of `zip-rs`; intentionally pinned for now due to ownership change |
63 | 110 | // See: https://github.com/astral-sh/uv/issues/3642 |
64 | | - matchPackageNames: ["zip"], |
65 | | - matchManagers: ["cargo"], |
| 111 | + matchPackageNames: [ |
| 112 | + "zip" |
| 113 | + ], |
| 114 | + matchManagers: [ |
| 115 | + "cargo" |
| 116 | + ], |
66 | 117 | enabled: false, |
67 | 118 | }, |
68 | 119 | { |
69 | 120 | // `mkdocs-material` requires a manual update to keep the version in sync |
70 | 121 | // with `mkdocs-material-insider`. |
71 | 122 | // See: https://squidfunk.github.io/mkdocs-material/insiders/upgrade/ |
72 | | - matchManagers: ["pip_requirements"], |
73 | | - matchPackageNames: ["mkdocs-material"], |
| 123 | + matchManagers: [ |
| 124 | + "pip_requirements" |
| 125 | + ], |
| 126 | + matchPackageNames: [ |
| 127 | + "mkdocs-material" |
| 128 | + ], |
74 | 129 | enabled: false, |
75 | 130 | }, |
76 | 131 | { |
77 | 132 | groupName: "pre-commit dependencies", |
78 | | - matchManagers: ["pre-commit"], |
| 133 | + matchManagers: [ |
| 134 | + "pre-commit" |
| 135 | + ], |
79 | 136 | description: "Weekly update of pre-commit dependencies", |
80 | 137 | }, |
81 | 138 | { |
82 | 139 | groupName: "NPM Development dependencies", |
83 | | - matchManagers: ["npm"], |
84 | | - matchDepTypes: ["devDependencies"], |
| 140 | + matchManagers: [ |
| 141 | + "npm" |
| 142 | + ], |
| 143 | + matchDepTypes: [ |
| 144 | + "devDependencies" |
| 145 | + ], |
85 | 146 | description: "Weekly update of NPM development dependencies", |
86 | 147 | }, |
87 | 148 | { |
88 | 149 | groupName: "Monaco", |
89 | | - matchManagers: ["npm"], |
90 | | - matchPackageNames: ["monaco"], |
| 150 | + matchManagers: [ |
| 151 | + "npm" |
| 152 | + ], |
| 153 | + matchPackageNames: [ |
| 154 | + "monaco" |
| 155 | + ], |
91 | 156 | description: "Weekly update of the Monaco editor", |
92 | 157 | }, |
93 | 158 | { |
94 | 159 | groupName: "strum", |
95 | | - matchManagers: ["cargo"], |
96 | | - matchPackageNames: ["strum"], |
| 160 | + matchManagers: [ |
| 161 | + "cargo" |
| 162 | + ], |
| 163 | + matchPackageNames: [ |
| 164 | + "strum" |
| 165 | + ], |
97 | 166 | description: "Weekly update of strum dependencies", |
98 | 167 | } |
99 | 168 | ], |
100 | 169 | vulnerabilityAlerts: { |
101 | 170 | commitMessageSuffix: "", |
102 | | - labels: ["internal", "security"], |
| 171 | + labels: [ |
| 172 | + "internal", |
| 173 | + "security" |
| 174 | + ], |
103 | 175 | }, |
104 | 176 | } |
0 commit comments