Files
accelerate/.pre-commit-config.yaml
devangpratapanddevangpratap fddc0a8bf0 Bump pre-commit ruff hook to v0.13.1 to match the quality extra (#4089)
The pre-commit ruff hook was pinned at v0.2.1, which cannot parse the
current pyproject.toml (it ignores the UP045 and UP035 rule selectors that
0.2.1 does not know), so `pre-commit run` fails on a fresh checkout with
"Unknown rule selector: UP045". setup.py already pins ruff == 0.13.1 for the
quality extra, so this aligns the hook with the version the project targets.

Co-authored-by: devangpratap <[email protected]>
2026-07-07 15:11:59 +02:00

14 lines
303 B
YAML

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.1
hooks:
- id: ruff
args:
- --fix
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-merge-conflict
- id: check-yaml