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

feature/mx-1579 switch to renovatebot #16

Merged
merged 3 commits into from
Apr 30, 2024
Merged
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- add review assignment to mex-template itself
- add code of conduct file to mex-template itself
- add badges for open-code and cookiecutter
- add renovate config and github action

### Changes

Expand All @@ -25,11 +26,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- clean up and expand pdm scripts
- improve and simplify mex.bat and makefile
- update pdm, ruff and pre-commit
- switch version specifiers to exact matches for renovatebot

### Deprecated

### Removed

- delete dependabot config

### Fixed

- fix finding of rejected cruft files
Expand Down
20 changes: 0 additions & 20 deletions mex-{{ cookiecutter.project_name }}/.github/dependabot.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Renovate

on:
push:
branches: ["main"]
schedule:
# * is a special character in YAML so you have to quote this string
- cron: "14 3 * * 1-5"
workflow_dispatch:

jobs:
renovate:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Run renovatebot
uses: renovatebot/[email protected]
env:
RENOVATE_GIT_PRIVATE_KEY: {% raw %}${{ secrets.GPG_SIGNING_KEY }}{% endraw %}
RENOVATE_REPOSITORIES: "robert-koch-institut/mex-{{ cookiecutter.project_name }}"
with:
configurationFile: renovate.json
token: {% raw %}${{ secrets.WORKFLOW_TOKEN }}{% endraw %}
20 changes: 10 additions & 10 deletions mex-{{ cookiecutter.project_name }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ urls = { Repository = "https://github.com/robert-koch-institut/mex-{{ cookiecutt
requires-python = "<3.13,>=3.11"
dependencies = []
optional-dependencies.dev = [
"black>=24.3.0",
"ipdb>=0.13.13",
"mypy>=1.9.0",
"pytest-cov>=4.1.0",
"pytest-random-order>=1.1.1",
"pytest-xdist>=3.5.0",
"pytest>=8.1.1",
"ruff>=0.3.5",
"sphinx>=7.2.6",
"black==24.3.0",
"ipdb==0.13.13",
"mypy==1.9.0",
"pytest-cov==4.1.0",
"pytest-random-order==1.1.1",
"pytest-xdist==3.5.0",
"pytest==8.1.1",
"ruff==0.3.5",
"sphinx==7.2.6",
]

[project.scripts]
Expand Down Expand Up @@ -127,5 +127,5 @@ known-first-party = ["mex", "tests"]
convention = "google"

[build-system]
requires = ["pdm-backend>=2.1.8"]
requires = ["pdm-backend==2.1.8"]
build-backend = "pdm.backend"
30 changes: 30 additions & 0 deletions mex-{{ cookiecutter.project_name }}/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"enabledManagers": [
"github-actions",
"html",
"npm",
"pep621",
"pip_requirements"
],
"gitAuthor": "RKIMetadataExchange <[email protected]>",
"lockFileMaintenance": {
"enabled": true,
"schedule": [
"before 4am on monday"
]
},
"packageRules": [
{
"matchUpdateTypes": [
"digest",
"lockFileMaintenance",
"major",
"minor",
"patch",
"pin"
],
"minimumReleaseAge": "7 days"
}
]
}