Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Configure Renovate #102

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/validate-renovate-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: validate-renovate-config

on:
pull_request:
paths: [renovate.json5]
push:
branches: [main]

env:
# renovate: datasource=node depName=node versioning=node
NODE_VERSION: "20"

jobs:
validate-renovate-config:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- run: npx -p renovate renovate-config-validator
40 changes: 40 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",

extend: [
// https://docs.renovatebot.com/presets-config/#configbase
"config:base",

// https://docs.renovatebot.com/presets-default/#automergepatch
":automergePatch",

// https://docs.renovatebot.com/presets-default/#enableprecommit
":enablePreCommit",

// https://docs.renovatebot.com/presets-default/#prhourlylimitnone
":prHourlyLimitNone",

// https://docs.renovatebot.com/presets-default/#rebasestaleprs
":rebaseStalePrs",

// https://docs.renovatebot.com/presets-regexManagers/#regexmanagersgithubactionsversions
"regexManagers:githubActionsVersions",
],
regexManagers: [
{
fileMatch: ["^{{cookiecutter.project_name}}/pyproject\\.toml$"],
matchStrings: [
'"(?<depName>pytest)": "\\^(?<currentValue>[^"]+)"',
'"(?<depName>pytest-cov)": "\\^(?<currentValue>[^"]+)"',
'"(?<depName>deptry)": "\\^(?<currentValue>[^"]+)"',
'"(?<depName>mypy)": "\\^(?<currentValue>[^"]+)"',
'"(?<depName>pre-commit)": "\\^(?<currentValue>[^"]+)"',
'"(?<depName>tox)": "\\^(?<currentValue>[^"]+)"',
'"(?<depName>mkdocs)": "\\^(?<currentValue>[^"]+)"',
'"(?<depName>mkdocs-material)": "\\^(?<currentValue>[^"]+)"',
'"(?<depName>mkdocstrings)": "\\{extras = \\[\\"python\\"\\], version = \\"\\^(?<currentValue>[^"]+)\\"\\}"',
],
datasourceTemplate: "pypi",
},
],
}
Loading