diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 26d0f8ab..306da55f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -36,9 +36,9 @@ repos: hooks: - id: flake8 additional_dependencies: - - flake8-bugbear==22.9.23 - - flake8-comprehensions==3.10.0 - - flake8-simplify==0.19.3 + - "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 - repo: https://github.com/pre-commit/pygrep-hooks rev: "v1.9.0" 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", + }, + ], +}