Improve renovate config (#2802)

This commit is contained in:
Alex Waygood 2024-04-03 12:48:39 +01:00 committed by GitHub
parent 471cb2bfd6
commit 345b767874
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 31 deletions

View file

@ -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"],
},
}

View file

@ -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 .

View file

@ -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