Skip to content

Commit fa64e55

Browse files
authored
Configure Renovate (#396)
Welcome to [Renovate](https://redirect.github.com/renovatebot/renovate)! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin. 🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged. --- ### Detected Package Files * `.github/workflows/cd.yml` (github-actions) * `.github/workflows/ci.yml` (github-actions) * `.github/workflows/release-drafter.yml` (github-actions) * `pyproject.toml` (pep621) * `.pre-commit-config.yaml` (pre-commit) ### Configuration Summary Based on the default config's presets, Renovate will: - Start dependency updates only once this onboarding PR is merged - Show all Merge Confidence badges for pull requests. - Enable Renovate Dependency Dashboard creation. - Use semantic commit type `fix` for dependencies and `chore` for all others if semantic commits are in use. - Ignore `node_modules`, `bower_components`, `vendor` and various test/tests (except for nuget) directories. - Group known monorepo packages together. - Use curated list of recommended non-monorepo package groupings. - Apply crowd-sourced package replacement rules. - Apply crowd-sourced workarounds for known problems with packages. - Append `Signed-off-by:` to signoff Git commits. - Run Renovate on following schedule: every weekend 🔡 Do you want to change how Renovate upgrades your dependencies? Add your custom config to `renovate.json` in this branch. Renovate will update the Pull Request description the next time it runs. --- ### What to Expect With your current configuration, Renovate will create 1 Pull Request: <details> <summary>⬆️🐍 Lock file maintenance</summary> - Schedule: ["before 4am on monday"] - Branch name: `renovate/lock-file-maintenance` - Merge into: `main` - Regenerate lock files to use latest dependency versions </details> --- ❓ Got questions? Check out Renovate's [Docs](https://docs.renovatebot.com/), particularly the Getting Started section. If you need any further assistance then you can also [request help here](https://redirect.github.com/renovatebot/renovate/discussions). --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/cda-tum/mqt-bench). <!--renovate-config-hash:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-->
2 parents 1087069 + 2cb145b commit fa64e55

File tree

7 files changed

+410
-344
lines changed

7 files changed

+410
-344
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/release-drafter.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,32 @@
1-
name-template: "MQTBench $RESOLVED_VERSION Release"
1+
name-template: "MQT Bench $RESOLVED_VERSION Release"
22
tag-template: "v$RESOLVED_VERSION"
33
categories:
44
- title: "🚀 Features and Enhancements"
55
labels:
66
- "feature"
7+
- "enhancement"
78
- "usability"
9+
- "refactor"
810
- title: "🐛 Bug Fixes"
911
labels:
1012
- "bug"
13+
- "fix"
1114
- title: "📄 Documentation"
1215
labels:
1316
- "documentation"
14-
- title: "🤖 CI"
15-
labels:
16-
- "continuous integration"
1717
- title: "📦 Packaging"
1818
labels:
1919
- "packaging"
20+
- title: "🤖 CI"
21+
labels:
22+
- "continuous integration"
2023
- title: "⬆️ Dependencies"
2124
collapse-after: 5
2225
labels:
2326
- "dependencies"
2427
- "submodules"
2528
- "github_actions"
29+
- "pre-commit"
2630
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
2731
change-title-escapes: '\<*_&'
2832
version-resolver:
@@ -36,13 +40,9 @@ version-resolver:
3640
labels:
3741
- "patch"
3842
default: patch
39-
autolabeler:
40-
- label: "dependencies"
41-
title:
42-
- "/update pre-commit hooks/i"
4343

4444
template: |
45-
## What Changed 👀
45+
## 👀 What Changed
4646
4747
$CHANGES
4848

.github/renovate.json5

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3+
extends: ["config:recommended", ":gitSignOff"],
4+
prHourlyLimit: 10,
5+
enabledManagers: ["github-actions", "pre-commit", "pep621"],
6+
"pre-commit": {
7+
enabled: true
8+
},
9+
lockFileMaintenance: {
10+
"enabled": true,
11+
// "automerge": true, disabled due to endless update loops caused by setuptools_scm
12+
},
13+
configMigration: true,
14+
labels: ["dependencies"],
15+
schedule: ["every weekend"],
16+
packageRules: [
17+
{
18+
matchManagers: ["github-actions"],
19+
addLabels: ["github-actions"],
20+
commitMessagePrefix: "⬆\uFE0F\uD83D\uDC68\u200D\uD83D\uDCBB"
21+
},
22+
{
23+
matchManagers: ["pep621"],
24+
addLabels: ["python"],
25+
commitMessagePrefix: "⬆\uFE0F\uD83D\uDC0D"
26+
},
27+
{
28+
matchManagers: ["pre-commit"],
29+
addLabels: ["pre-commit"],
30+
commitMessagePrefix: "⬆\uFE0F\uD83E\uDE9D",
31+
},
32+
{
33+
"description": "Automerge patch updates",
34+
"matchUpdateTypes": ["patch"],
35+
"automerge": true
36+
}
37+
]
38+
}

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ repos:
6464

6565
# Also run Black on examples in the documentation
6666
- repo: https://github.com/adamchainz/blacken-docs
67-
rev: 1.18.0
67+
rev: 1.19.0
6868
hooks:
6969
- id: blacken-docs
7070
additional_dependencies: [black==24.*]
@@ -128,6 +128,6 @@ repos:
128128

129129
# Check the pyproject.toml file
130130
- repo: https://github.com/henryiii/validate-pyproject-schema-store
131-
rev: 2024.09.23
131+
rev: 2024.10.07
132132
hooks:
133133
- id: validate-pyproject

noxfile.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import argparse
66
import os
7+
import shutil
78
from typing import TYPE_CHECKING
89

910
import nox
@@ -30,12 +31,11 @@
3031

3132
@nox.session(reuse_venv=True)
3233
def lint(session: nox.Session) -> None:
33-
"""Lint the Python part of the codebase using pre-commit.
34+
"""Run the linter."""
35+
if shutil.which("pre-commit") is None:
36+
session.install("pre-commit")
3437

35-
Simply execute `nox -rs lint` to run all configured hooks.
36-
"""
37-
session.install("pre-commit")
38-
session.run("pre-commit", "run", "--all-files", *session.posargs)
38+
session.run("pre-commit", "run", "--all-files", *session.posargs, external=True)
3939

4040

4141
def _run_tests(

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,3 +227,6 @@ aer = "aer"
227227
fom = "fom"
228228
bench = "bench"
229229
benchs = "benchs"
230+
231+
[tool.repo-review]
232+
ignore = ["GH200"]

0 commit comments

Comments
 (0)