mirror of
https://github.com/huggingface/accelerate.git
synced 2026-10-12 02:15:39 +00:00
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]>
This commit is contained in:
co-authored by
devangpratap
parent
2278ebbfd5
commit
fddc0a8bf0
@@ -1,6 +1,6 @@
|
||||
repos:
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.2.1
|
||||
rev: v0.13.1
|
||||
hooks:
|
||||
- id: ruff
|
||||
args:
|
||||
|
||||
Reference in New Issue
Block a user