|
5 | 5 | { |
6 | 6 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", |
7 | 7 | "extends": [ |
| 8 | + // https://docs.renovatebot.com/presets-config/#configrecommended |
8 | 9 | "config:recommended", |
9 | 10 | // https://docs.renovatebot.com/presets-default/#separatemultiplemajorreleases |
10 | 11 | ":separateMultipleMajorReleases", |
11 | 12 | // set timezone to local one to ensure schedules are run |
12 | 13 | // https://docs.renovatebot.com/configuration-options/#timezone |
13 | 14 | ":timezone(America/Toronto)", |
14 | | - // enable updates for pre-commit |
15 | | - // see: https://docs.renovatebot.com/modules/manager/pre-commit/ |
16 | | - // https://docs.renovatebot.com/presets-default/#enableprecommit |
17 | | - ":enablePreCommit", |
| 15 | + // https://docs.renovatebot.com/presets-default/#maintainlockfilesweekly |
| 16 | + ":maintainLockFilesMonthly", |
| 17 | + // https://docs.renovatebot.com/presets-helpers/#helperspingithubactiondigeststosemver |
| 18 | + "helpers:pinGitHubActionDigestsToSemver", |
18 | 19 | "github>mschoettle/renovate-presets//presets/actions-dependency-version.json5", |
19 | | - "github>mschoettle/renovate-presets//presets/packages/typos.json5", |
| 20 | + "github>mschoettle/renovate-presets//presets/pre-commit-hooks.json", |
20 | 21 | ], |
21 | 22 | // https://docs.renovatebot.com/configuration-options/#assignees |
22 | 23 | "assignees": ["mschoettle"], |
|
44 | 45 | "matchPackageNames": ["/markdownlint-cli2/"], |
45 | 46 | "groupName": "markdownlint-cli2", |
46 | 47 | }, |
47 | | - // Reduce noise of pre-commit hooks |
| 48 | + // Exclude uv and ruff pre-commits from pre-commit hooks group |
| 49 | + // to avoid adding config options from the pre-commit hooks preset |
48 | 50 | { |
49 | 51 | "matchManagers": [ |
50 | 52 | "pre-commit", |
51 | 53 | ], |
52 | | - "groupName": "pre-commit hooks", |
53 | | - "separateMajorMinor": false, |
54 | | - "separateMinorPatch": false, |
55 | | - // Restrict to weekly updates |
56 | | - "schedule": [ |
57 | | - "before 12pm on Monday", |
| 54 | + "matchPackageNames": [ |
| 55 | + "!/ruff-pre-commit/", |
| 56 | + "!/uv-pre-commit/", |
58 | 57 | ], |
59 | 58 | }, |
60 | 59 | // Combine uv package, uv image, and uv-pre-commit |
|
0 commit comments