by jon-wood · 4mo ago · 0 comments
I’m aware we could have an allowlist in place which specifies all rules that are turned on but I’d much rather have a simpler config file, and be able to bump the state version at a good time for everyone to spend a few hours fixing new violations.
Two approaches:
You can pin the version of `ruff` in `pyproject.toml`.
You, to let ruff command version advance but pin the settings to a prior version:
uvx ruff@0.15.22 check --isolated --show-settings | flat2toml > pinned.toml
The `flat2toml` script is left as an exercise. Then in `ruff.toml`: extend = "pinned.toml"According to the original post
> Ruff's default rule set was last modified in v0.1.0
Which was over 2 years ago.