Skip to content

Commit

Permalink
chore(renovate): 使用 json5 格式并细化分类
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Dec 5, 2024
1 parent e5ef161 commit bb1d4be
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/renovate.json

This file was deleted.

57 changes: 57 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
dependencyDashboard: true,
extends: [
"config:recommended",
"schedule:weekly",
":semanticCommitTypeAll(chore)",
],
labels: ["dependencies"],
rangeStrategy: "bump",
ignoreDeps: ["eorzeaenv"],
packageRules: [
{
groupName: "Python dependencies",
// https://docs.renovatebot.com/modules/manager/pep621/
matchManagers: ["pep621"],
matchDepTypes: ["project.dependencies"],
matchUpdateTypes: ["minor", "patch"],
description: "Weekly update of Python dependencies",
},
{
groupName: "Python dev-dependencies",
// https://docs.renovatebot.com/modules/manager/pep621/
matchManagers: ["pep621"],
matchDepTypes: ["tool.uv.dev-dependencies"],
matchUpdateTypes: ["minor", "patch"],
description: "Weekly update of Python dev-dependencies",
},
{
groupName: "GitHub actions dependencies",
// https://docs.renovatebot.com/modules/manager/github-actions/
matchManagers: ["github-actions"],
description: "Weekly update of GitHub actions dependencies",
},
{
groupName: "Docker dependencies",
// https://docs.renovatebot.com/modules/manager/dockerfile/
matchManagers: ["dockerfile"],
description: "Weekly update of Docker dependencies",
},
{
// 更新 Python 版本时,需要同时更新这几个文件
groupName: "Python version",
matchPackageNames: ["python"],
// https://docs.renovatebot.com/modules/manager/dockerfile/
// https://docs.renovatebot.com/modules/manager/pyenv/
matchManagers: ["dockerfile", "pyenv"],
description: "Weekly update of Python version",
},
{
groupName: "pre-commit dependencies",
// https://docs.renovatebot.com/modules/manager/pre-commit/
matchManagers: ["pre-commit"],
description: "Weekly update of pre-commit dependencies",
},
],
}

0 comments on commit bb1d4be

Please sign in to comment.