mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Improve renovate config (#2802)
This commit is contained in:
parent
471cb2bfd6
commit
345b767874
3 changed files with 26 additions and 31 deletions
53
.github/renovate.json5
vendored
53
.github/renovate.json5
vendored
|
@ -1,42 +1,37 @@
|
|||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"dependencyDashboard": true,
|
||||
"suppressNotifications": ["prEditedNotification"],
|
||||
"extends": ["config:recommended"],
|
||||
"labels": ["internal"],
|
||||
"schedule": ["before 4am on Monday"],
|
||||
"separateMajorMinor": false,
|
||||
"enabledManagers": [
|
||||
"github-actions",
|
||||
"pre-commit",
|
||||
"cargo",
|
||||
],
|
||||
"cargo": {
|
||||
$schema: "https://docs.renovatebot.com/renovate-schema.json",
|
||||
dependencyDashboard: true,
|
||||
suppressNotifications: ["prEditedNotification"],
|
||||
extends: ["config:recommended"],
|
||||
labels: ["internal"],
|
||||
schedule: ["on Monday"],
|
||||
separateMajorMinor: false,
|
||||
prHourlyLimit: 10,
|
||||
enabledManagers: ["github-actions", "pre-commit", "cargo"],
|
||||
cargo: {
|
||||
// See https://docs.renovatebot.com/configuration-options/#rangestrategy
|
||||
"rangeStrategy": "update-lockfile",
|
||||
"fileMatch": [
|
||||
"^crates/.*Cargo\\.toml$",
|
||||
],
|
||||
rangeStrategy: "update-lockfile",
|
||||
fileMatch: ["^crates/.*Cargo\\.toml$"],
|
||||
},
|
||||
"pre-commit": {
|
||||
"enabled": true,
|
||||
enabled: true,
|
||||
},
|
||||
"packageRules": [
|
||||
packageRules: [
|
||||
{
|
||||
// Group upload/download artifact updates, the versions are dependent
|
||||
"groupName": "Artifact GitHub Actions dependencies",
|
||||
"matchManagers": ["github-actions"],
|
||||
"matchPackagePatterns": ["actions/.*-artifact"],
|
||||
"description": "Weekly update of artifact-related GitHub Actions dependencies",
|
||||
groupName: "Artifact GitHub Actions dependencies",
|
||||
matchManagers: ["github-actions"],
|
||||
matchPackagePatterns: ["actions/.*-artifact"],
|
||||
description: "Weekly update of artifact-related GitHub Actions dependencies",
|
||||
},
|
||||
{
|
||||
"groupName": "pre-commit dependencies",
|
||||
"matchManagers": ["pre-commit"],
|
||||
"description": "Weekly update of pre-commit dependencies",
|
||||
groupName: "pre-commit dependencies",
|
||||
matchManagers: ["pre-commit"],
|
||||
description: "Weekly update of pre-commit dependencies",
|
||||
},
|
||||
],
|
||||
"vulnerabilityAlerts": {
|
||||
"commitMessageSuffix": "",
|
||||
"labels": ["internal", "security"],
|
||||
vulnerabilityAlerts: {
|
||||
commitMessageSuffix: "",
|
||||
labels: ["internal", "security"],
|
||||
},
|
||||
}
|
||||
|
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -31,7 +31,7 @@ jobs:
|
|||
run: cargo fmt --all --check
|
||||
|
||||
- name: "Prettier"
|
||||
run: npx prettier --check "**/*.{yaml,yml}"
|
||||
run: npx prettier --check "**/*.{json5,yaml,yml}"
|
||||
|
||||
- name: "Ruff format"
|
||||
run: pipx run ruff format --diff .
|
||||
|
|
|
@ -29,7 +29,7 @@ repos:
|
|||
rev: v3.1.0
|
||||
hooks:
|
||||
- id: prettier
|
||||
types: [yaml]
|
||||
types_or: [yaml, json5]
|
||||
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.2.1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue