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.
Problem
.pre-commit-config.yamlpinsastral-sh/ruff-pre-commitatv0.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 theruff>=0.15.0dev dependency inpyproject.toml.pre-commit-hooksis pinned atv6.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:
Note: Dependabot does not natively support pre-commit hooks, but Renovate does via the
pre-commitmanager.