From 61703266911d87c955c8024522c268bb54067974 Mon Sep 17 00:00:00 2001 From: Mathieu Kniewallner Date: Wed, 9 Nov 2022 00:24:06 +0100 Subject: [PATCH 1/2] chore: add Renovate --- renovate.json5 | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 renovate.json5 diff --git a/renovate.json5 b/renovate.json5 new file mode 100644 index 00000000..ef9ebff3 --- /dev/null +++ b/renovate.json5 @@ -0,0 +1,32 @@ +{ + $schema: "https://docs.renovatebot.com/renovate-schema.json", + + // https://docs.renovatebot.com/configuration-options/#extends + extends: [ + // https://docs.renovatebot.com/presets-config/#configbase + "config:base", + // https://docs.renovatebot.com/presets-default/#enableprecommit + ":enablePreCommit", + // https://docs.renovatebot.com/presets-default/#maintainlockfilesweekly + ":maintainLockFilesWeekly", + // https://docs.renovatebot.com/presets-default/#prhourlylimitnone + ":prHourlyLimitNone", + // https://docs.renovatebot.com/presets-default/#rebasestaleprs + ":rebaseStalePrs", + ], + + // https://docs.renovatebot.com/configuration-options/#labels + labels: ["dependencies"], + + // https://docs.renovatebot.com/configuration-options/#regexmanagers + regexManagers: [ + { + description: "Update PEP 440 Python dependencies", + fileMatch: ["^\\.pre-commit-config\\.yaml$"], + matchStrings: [ + '"(?[\\w-]+)(?.+?)",?[[:blank:]]+#[[:blank:]]*renovate: pep440-python-dependency\\s', + ], + datasourceTemplate: "pypi", + }, + ], +} From 383aca82fb55a54f454a01f159399dcae98eb4f8 Mon Sep 17 00:00:00 2001 From: Mathieu Kniewallner Date: Wed, 9 Nov 2022 00:24:33 +0100 Subject: [PATCH 2/2] chore(pre-commit): hint Renovate on additional dependencies --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7e03fc4f..b8df39db 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,6 +26,6 @@ repos: hooks: - id: flake8 additional_dependencies: - - flake8-bugbear==22.9.23 - - flake8-comprehensions==3.10.0 - - flake8-simplify==0.19.3 \ No newline at end of file + - "flake8-bugbear==22.9.23" # renovate: pep440-python-dependency + - "flake8-comprehensions==3.10.0" # renovate: pep440-python-dependency + - "flake8-simplify==0.19.3" # renovate: pep440-python-dependency