-
Notifications
You must be signed in to change notification settings - Fork 88
[BUG] Pre-commit ruff hook fails: D420 rule unknown in pinned v0.14.6 #608
Copy link
Copy link
Open
Description
Describe the bug
The pre-commit config pins ruff at v0.14.6, but pyproject.toml includes the D420 rule (incorrect-section-order) in the lint ignore list, which was introduced in ruff>=0.15.3 as a preview rule. This causes the ruff pre-commit hook to fail on every commit with a TOML parse error.
What I did
git commit -m "feat: integrate KVPress"
ruff check...............................................................Failed
- hook id: ruff-check
- exit code: 2
ruff failed
Cause: Failed to parse pyproject.toml
Cause: TOML parse error at line 6, column 81
Expected behavior
Pre-commit ruff hook should pass when ruff check in the dev environment (which uses ruff>=0.15.3) passes.
Fix
Bump rev: v0.14.6 to rev: v0.15.3 (or later) in .pre-commit-config.yaml to match the dev dependency.
Environment
- pruna version: db07dcf (main)
- python version: 3.12
- Operating System: Linux
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels