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

View file

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

View file

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