Skip to content

chore(ci): run pre-commit autoupdate #9

@w-martin

Description

@w-martin

Problem

.pre-commit-config.yaml pins astral-sh/ruff-pre-commit at v0.15.1. Ruff ships releases roughly every 1–2 weeks. The hook version can fall several minor versions behind quickly, meaning the pre-commit ruff version diverges from the ruff>=0.15.0 dev dependency in pyproject.toml.

pre-commit-hooks is pinned at v6.0.0 — this should also be checked.

Fix

Run locally and commit the result:

pre-commit autoupdate
git add .pre-commit-config.yaml
git commit -m "chore: update pre-commit hook versions"

Consider adding a scheduled CI job or Renovate/Dependabot config to keep hook versions current automatically. Dependabot supports pre-commit hooks via:

# .github/dependabot.yml
version: 2
updates:
  - package-ecosystem: "pip"
    directory: "/"
    schedule:
      interval: "weekly"
  - package-ecosystem: "github-actions"
    directory: "/"
    schedule:
      interval: "weekly"

Note: Dependabot does not natively support pre-commit hooks, but Renovate does via the pre-commit manager.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions