diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 2aeef1eb0..dd64e6620 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -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"], }, } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 472d1eb95..760b71e31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 . diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eb2a6bc92..abd3eb80d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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