mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 10:58:28 +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",
|
$schema: "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"dependencyDashboard": true,
|
dependencyDashboard: true,
|
||||||
"suppressNotifications": ["prEditedNotification"],
|
suppressNotifications: ["prEditedNotification"],
|
||||||
"extends": ["config:recommended"],
|
extends: ["config:recommended"],
|
||||||
"labels": ["internal"],
|
labels: ["internal"],
|
||||||
"schedule": ["before 4am on Monday"],
|
schedule: ["on Monday"],
|
||||||
"separateMajorMinor": false,
|
separateMajorMinor: false,
|
||||||
"enabledManagers": [
|
prHourlyLimit: 10,
|
||||||
"github-actions",
|
enabledManagers: ["github-actions", "pre-commit", "cargo"],
|
||||||
"pre-commit",
|
cargo: {
|
||||||
"cargo",
|
|
||||||
],
|
|
||||||
"cargo": {
|
|
||||||
// See https://docs.renovatebot.com/configuration-options/#rangestrategy
|
// See https://docs.renovatebot.com/configuration-options/#rangestrategy
|
||||||
"rangeStrategy": "update-lockfile",
|
rangeStrategy: "update-lockfile",
|
||||||
"fileMatch": [
|
fileMatch: ["^crates/.*Cargo\\.toml$"],
|
||||||
"^crates/.*Cargo\\.toml$",
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
"pre-commit": {
|
"pre-commit": {
|
||||||
"enabled": true,
|
enabled: true,
|
||||||
},
|
},
|
||||||
"packageRules": [
|
packageRules: [
|
||||||
{
|
{
|
||||||
// Group upload/download artifact updates, the versions are dependent
|
// Group upload/download artifact updates, the versions are dependent
|
||||||
"groupName": "Artifact GitHub Actions dependencies",
|
groupName: "Artifact GitHub Actions dependencies",
|
||||||
"matchManagers": ["github-actions"],
|
matchManagers: ["github-actions"],
|
||||||
"matchPackagePatterns": ["actions/.*-artifact"],
|
matchPackagePatterns: ["actions/.*-artifact"],
|
||||||
"description": "Weekly update of artifact-related GitHub Actions dependencies",
|
description: "Weekly update of artifact-related GitHub Actions dependencies",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"groupName": "pre-commit dependencies",
|
groupName: "pre-commit dependencies",
|
||||||
"matchManagers": ["pre-commit"],
|
matchManagers: ["pre-commit"],
|
||||||
"description": "Weekly update of pre-commit dependencies",
|
description: "Weekly update of pre-commit dependencies",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"vulnerabilityAlerts": {
|
vulnerabilityAlerts: {
|
||||||
"commitMessageSuffix": "",
|
commitMessageSuffix: "",
|
||||||
"labels": ["internal", "security"],
|
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
|
run: cargo fmt --all --check
|
||||||
|
|
||||||
- name: "Prettier"
|
- name: "Prettier"
|
||||||
run: npx prettier --check "**/*.{yaml,yml}"
|
run: npx prettier --check "**/*.{json5,yaml,yml}"
|
||||||
|
|
||||||
- name: "Ruff format"
|
- name: "Ruff format"
|
||||||
run: pipx run ruff format --diff .
|
run: pipx run ruff format --diff .
|
||||||
|
|
|
@ -29,7 +29,7 @@ repos:
|
||||||
rev: v3.1.0
|
rev: v3.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
types: [yaml]
|
types_or: [yaml, json5]
|
||||||
|
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.2.1
|
rev: v0.2.1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue