Skip to content

Commit

Permalink
Configure Renovate (#396)
Browse files Browse the repository at this point in the history
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-->
  • Loading branch information
burgholzer authored Oct 10, 2024
2 parents 1087069 + 2cb145b commit fa64e55
Show file tree
Hide file tree
Showing 7 changed files with 410 additions and 344 deletions.
29 changes: 0 additions & 29 deletions .github/dependabot.yml

This file was deleted.

18 changes: 9 additions & 9 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
name-template: "MQTBench $RESOLVED_VERSION Release"
name-template: "MQT Bench $RESOLVED_VERSION Release"
tag-template: "v$RESOLVED_VERSION"
categories:
- title: "🚀 Features and Enhancements"
labels:
- "feature"
- "enhancement"
- "usability"
- "refactor"
- title: "🐛 Bug Fixes"
labels:
- "bug"
- "fix"
- title: "📄 Documentation"
labels:
- "documentation"
- title: "🤖 CI"
labels:
- "continuous integration"
- title: "📦 Packaging"
labels:
- "packaging"
- title: "🤖 CI"
labels:
- "continuous integration"
- title: "⬆️ Dependencies"
collapse-after: 5
labels:
- "dependencies"
- "submodules"
- "github_actions"
- "pre-commit"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&'
version-resolver:
Expand All @@ -36,13 +40,9 @@ version-resolver:
labels:
- "patch"
default: patch
autolabeler:
- label: "dependencies"
title:
- "/update pre-commit hooks/i"

template: |
## What Changed 👀
## 👀 What Changed
$CHANGES
Expand Down
38 changes: 38 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: ["config:recommended", ":gitSignOff"],
prHourlyLimit: 10,
enabledManagers: ["github-actions", "pre-commit", "pep621"],
"pre-commit": {
enabled: true
},
lockFileMaintenance: {
"enabled": true,
// "automerge": true, disabled due to endless update loops caused by setuptools_scm
},
configMigration: true,
labels: ["dependencies"],
schedule: ["every weekend"],
packageRules: [
{
matchManagers: ["github-actions"],
addLabels: ["github-actions"],
commitMessagePrefix: "⬆\uFE0F\uD83D\uDC68\u200D\uD83D\uDCBB"
},
{
matchManagers: ["pep621"],
addLabels: ["python"],
commitMessagePrefix: "⬆\uFE0F\uD83D\uDC0D"
},
{
matchManagers: ["pre-commit"],
addLabels: ["pre-commit"],
commitMessagePrefix: "⬆\uFE0F\uD83E\uDE9D",
},
{
"description": "Automerge patch updates",
"matchUpdateTypes": ["patch"],
"automerge": true
}
]
}
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ repos:

# Also run Black on examples in the documentation
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.18.0
rev: 1.19.0
hooks:
- id: blacken-docs
additional_dependencies: [black==24.*]
Expand Down Expand Up @@ -128,6 +128,6 @@ repos:

# Check the pyproject.toml file
- repo: https://github.com/henryiii/validate-pyproject-schema-store
rev: 2024.09.23
rev: 2024.10.07
hooks:
- id: validate-pyproject
10 changes: 5 additions & 5 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import argparse
import os
import shutil
from typing import TYPE_CHECKING

import nox
Expand All @@ -30,12 +31,11 @@

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

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


def _run_tests(
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -227,3 +227,6 @@ aer = "aer"
fom = "fom"
bench = "bench"
benchs = "benchs"

[tool.repo-review]
ignore = ["GH200"]
Loading

0 comments on commit fa64e55

Please sign in to comment.