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
Describe the bug
The pre-commit config pins
ruffatv0.14.6, butpyproject.tomlincludes theD420rule (incorrect-section-order) in the lint ignore list, which was introduced inruff>=0.15.3as a preview rule. This causes the ruff pre-commit hook to fail on every commit with a TOML parse error.What I did
Expected behavior
Pre-commit ruff hook should pass when
ruff checkin the dev environment (which usesruff>=0.15.3) passes.Fix
Bump
rev: v0.14.6torev: v0.15.3(or later) in.pre-commit-config.yamlto match the dev dependency.Environment