Skip to content

Commit

Permalink
⬆️ Update dependency management and automerge configuration (#565)
Browse files Browse the repository at this point in the history
## Description

This pull request improves the dependency management process and
automerge behavior. It includes the following updates:
- Updated pre-commit hooks to the latest versions.
- Enabled automerge for minor version updates of stable dependencies.
- Enabled automerge for lockfile update pull requests.
- Explicitly added a lower version bound for the `sphinx` dependency.

These changes ensure smoother dependency updates and improve overall
development efficiency.

## Checklist:

<!---
This checklist serves as a reminder of a couple of things that ensure
your pull request will be merged swiftly.
-->

- [x] The pull request only contains commits that are related to it.
- [x] I have added appropriate tests and documentation.
- [x] I have made sure that all CI jobs on GitHub pass.
- [x] The pull request introduces no new warnings and follows the
project's style guidelines

---------

Signed-off-by: burgholzer <burgholzer@me.com>
  • Loading branch information
burgholzer authored Mar 3, 2025
1 parent aee33e9 commit aadfdb6
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
17 changes: 12 additions & 5 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
enabled: true
},
lockFileMaintenance: {
"enabled": true,
// "automerge": true, disabled due to endless update loops caused by setuptools_scm
enabled: true,
automerge: true,
},
configMigration: true,
labels: ["dependencies"],
Expand All @@ -30,9 +30,16 @@
commitMessagePrefix: "⬆\uFE0F\uD83E\uDE9D",
},
{
"description": "Automerge patch updates",
"matchUpdateTypes": ["patch"],
"automerge": true
description: "Automerge patch updates",
matchUpdateTypes: ["patch"],
automerge: true
},
{
description: "Automerge minor updates for stable dependencies",
matchManagers: ["pep621", "pre-commit"],
matchUpdateTypes: ["minor", "patch"],
matchCurrentVersion: "!/^0/",
automerge: true
}
]
}
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ repos:

# Format configuration files with prettier
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.5.2
rev: v3.5.3
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]
Expand Down Expand Up @@ -126,7 +126,7 @@ repos:

# Check best practices for scientific Python code
- repo: https://github.com/scientific-python/cookie
rev: 2024.08.19
rev: 2025.01.22
hooks:
- id: sp-repo-review
additional_dependencies: ["repo-review[cli]"]
Expand All @@ -141,6 +141,6 @@ repos:

# Check the pyproject.toml file
- repo: https://github.com/henryiii/validate-pyproject-schema-store
rev: 2025.01.10
rev: 2025.02.24
hooks:
- id: validate-pyproject
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@ docs = [
"ipykernel>=6.29.5",
"nbsphinx>=0.9.6",
"sphinx-autodoc-typehints>=2.3.0",
"sphinx>=7.4.7",
"sphinx>=8.1.3; python_version >= '3.10'",
"sphinx>=8.2.3; python_version >= '3.11'",
]
test = [
"pytest>=8.3.4",
Expand Down
12 changes: 12 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aadfdb6

Please sign in to comment.