Bug: Version mismatch check should occur before rule validation
Bug: Version mismatch check should occur before rule validation: a task in LegoFlow-SWE (Harbor dataset). Description When a ruff.toml or pyproject.toml specifies both a required-version constraint and rules that are only recognized in newer versions, running an older version of ruff gives an…
The task
**Description** When a `ruff.toml` or `pyproject.toml` specifies both a `required-version` constraint and rules that are only recognized in newer versions, running an older version of ruff gives an unhelpful error about an unknown rule selector instead of the expected version mismatch message.
Part of Lego-X/LegoFlow-SWE.