Skip to content

Commit

Permalink
more renovate config
Browse files Browse the repository at this point in the history
  • Loading branch information
fpgmaas committed Dec 14, 2023
1 parent fbde195 commit 1ee2f64
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 21 deletions.
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
21 changes: 0 additions & 21 deletions renovate.json

This file was deleted.

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",
},
],
}

0 comments on commit 1ee2f64

Please sign in to comment.