From 50ff5c754421474b353f94edfdc1fed7a8c3b82b Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Wed, 7 Aug 2024 13:11:18 +0530 Subject: [PATCH] Include docs requirements for Renovate upgrades (#12724) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary This PR updates the Renovate config to account for the `requirements*.txt` files in `docs/` directory. The `mkdocs-material` upgrade is ignored because we use commit SHA for the insider version and it should match the corresponding public version as per the docs: https://squidfunk.github.io/mkdocs-material/insiders/upgrade/ (`9.x.x-insiders-4.x.x`). ## Test Plan ```console ❯ renovate-config-validator (node:83193) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) INFO: Validating .github/renovate.json5 INFO: Config validated successfully ``` --- .github/renovate.json5 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 33398b0b7e..66a2421f51 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -8,7 +8,7 @@ semanticCommits: "disabled", separateMajorMinor: false, prHourlyLimit: 10, - enabledManagers: ["github-actions", "pre-commit", "cargo", "pep621", "npm"], + enabledManagers: ["github-actions", "pre-commit", "cargo", "pep621", "pip_requirements", "npm"], cargo: { // See https://docs.renovatebot.com/configuration-options/#rangestrategy rangeStrategy: "update-lockfile", @@ -16,6 +16,9 @@ pep621: { fileMatch: ["^(python|scripts)/.*pyproject\\.toml$"], }, + pip_requirements: { + fileMatch: ["^docs/requirements.*\\.txt$"], + }, npm: { fileMatch: ["^playground/.*package\\.json$"], }, @@ -48,6 +51,14 @@ matchManagers: ["cargo"], enabled: false, }, + { + // `mkdocs-material` requires a manual update to keep the version in sync + // with `mkdocs-material-insider`. + // See: https://squidfunk.github.io/mkdocs-material/insiders/upgrade/ + matchManagers: ["pip_requirements"], + matchPackagePatterns: ["mkdocs-material"], + enabled: false, + }, { groupName: "pre-commit dependencies", matchManagers: ["pre-commit"],