ITADN

Ruff version mismatch and outdated configuration

#515ClosedDhavalGojiya 创建于 2025-11-06
D
DhavalGojiyacommented
The current `ruff` version in `Pipfile.lock` is `0.0.269`, which is different from the version used in the `.pre-commit-config.yaml` file — the latest one being `0.14.3`. Because of this older version, Ruff fails to recognize the new `[tool.ruff.lint]` configuration syntax. Running `ruff check` after setting up the project throws a TOML parse error related to the `lint` field. ## Test Code ### 1. With Old Version `0.0.269` ```shell (pysolr) dhaval@lg-ubuntu:~/Open-Source/pysolr$ ruff --version ruff 0.0.269 (pysolr) dhaval@lg-ubuntu:~/Open-Source/pysolr$ ruff check . error: TOML parse error at line 4, column 1 | 4 | lint.select = [ | ^^^^ unknown field `lint`, expected one of ... ``` ### 2. With Latest Version `0.14.3` ```shell (pysolr) dhaval@lg-ubuntu:~/Open-Source/pysolr$ uvx ruff@0.14.3 check . All checks passed! ``` --- ### ✅ Expected Behaviour We need to update the `ruff` version to the latest in the `Pipfile.lock` as well.
关闭于 2025-11-06 0 条评论