From 35250ca84e5f19e82b67108b53b5ae1d0dc0c056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 10 Jan 2025 09:51:33 +0100 Subject: [PATCH] feat: switch to renovate from dependabot This will give us fine-grained updates for pre-commit. --- .github/dependabot.yml | 12 ------------ .github/renovate.json | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 12 deletions(-) delete mode 100644 .github/dependabot.yml create mode 100644 .github/renovate.json diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 1ee4b451c..000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,12 +0,0 @@ -version: 2 -updates: -- package-ecosystem: github-actions - directory: / - schedule: - interval: daily - open-pull-requests-limit: 10 -- package-ecosystem: pip - directory: / - schedule: - interval: daily - open-pull-requests-limit: 10 diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 000000000..f234a6333 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,33 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ], + "pre-commit": { + "enabled": true + }, + "customManagers": [ + { + "customType": "regex", + "fileMatch": [ + "\\.pre-commit-config\\.yaml" + ], + "matchStrings": [ + "(?[^'\" ]+)==(?[^'\" ,\\s]+)" + ], + "datasourceTemplate": "pypi", + "versioningTemplate": "pep440" + }, + { + "customType": "regex", + "fileMatch": [ + "\\.pre-commit-config\\.yaml" + ], + "matchStrings": [ + "(?[^'\" ]+)@(?[^'\" ,\\s]+)" + ], + "datasourceTemplate": "npm", + "versioningTemplate": "npm" + } + ] +}